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
In requireMsgValue(), the comparison msg.value == _requiredValue is used to check if the value sent with the message matches the specified value. While this ensures that the exact value is sent, it might be too restrictive in some cases. Consider adding a range check or allowing a margin of error depending on the requirements of the contract.
馃悰 Bug Report
馃摑 Description
In
requireMsgValue()
, the comparisonmsg.value == _requiredValue
is used to check if the value sent with the message matches the specified value. While this ensures that the exact value is sent, it might be too restrictive in some cases. Consider adding a range check or allowing a margin of error depending on the requirements of the contract.Route
core/tests/ts-integration/contracts/context/context.sol
The text was updated successfully, but these errors were encountered: