Skip to content

Commit

Permalink
adjust comment after recent change
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jun 29, 2023
1 parent f72c2d5 commit 62d2342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/metatx/ERC2771Forwarder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ contract ERC2771Forwarder is EIP712, Nonces {
*/
function execute(ForwardRequestData calldata request) public payable virtual {
// We make sure that msg.value and request.value match exactly.
// If the request is invalid or the call reverts, requireValidRequest ensures this value won't be lost.
// If the request is invalid or the call reverts, this whole function
// will revert, ensuring value isn't stuck.
if (msg.value != request.value) {
revert ERC2771ForwarderMismatchedValue(request.value, msg.value);
}
Expand Down

0 comments on commit 62d2342

Please sign in to comment.