From ec94c7f7f569f2791cc698b98b9df2c8a8af5389 Mon Sep 17 00:00:00 2001 From: Maksim Kiselev Date: Tue, 4 Jun 2024 11:21:22 +0200 Subject: [PATCH] Added return `stakeId` value --- contracts/hardhat/contracts/RewardPool.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/hardhat/contracts/RewardPool.sol b/contracts/hardhat/contracts/RewardPool.sol index f9254b6..b5ae854 100644 --- a/contracts/hardhat/contracts/RewardPool.sol +++ b/contracts/hardhat/contracts/RewardPool.sol @@ -145,7 +145,7 @@ contract RewardPool is OwnableUpgradeable, IRewardPool { * @return stakeId ID of the created stake */ function stake(uint96 amount) public returns (uint256 stakeId) { - stakeFor(msg.sender, amount); + stakeId = stakeFor(msg.sender, amount); } /**