You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user calls the methods mint or batchMint, they need to provide the correct amount of ether in order to buy the tokens. The ether amount is checked in the modifier isValidAmount.
Change the check to make sure the amount sent is exactly equal to the required amount. Making this change will protect the users from making mistakes and sending too much ether into the contract.
The text was updated successfully, but these errors were encountered:
Description
When a user calls the methods
mint
orbatchMint
, they need to provide the correct amount of ether in order to buy the tokens. The ether amount is checked in the modifierisValidAmount
.review-casinoverse-land-2022-08/code/contracts/Land.sol
Lines 239 to 247 in 0c7e33d
The check makes sure that the user sent the ether amount that is equal to or higher than the necessary one.
Recommendation
Change the check to make sure the amount sent is exactly equal to the required amount. Making this change will protect the users from making mistakes and sending too much ether into the contract.
The text was updated successfully, but these errors were encountered: