Skip to content

Commit

Permalink
Merge pull request #11 from Azuro-protocol/fix-return_stakeId_value
Browse files Browse the repository at this point in the history
Added return `stakeId` value
  • Loading branch information
KiselevMaxim authored Jun 4, 2024
2 parents b131314 + ec94c7f commit 9d234d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/hardhat/contracts/RewardPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 9d234d1

Please sign in to comment.