Skip to content

Commit

Permalink
ERC-7540 - Add ERC7540 - cumulative generate request id approach
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeJayElly committed Jan 28, 2025
1 parent 981069c commit f4092f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/token/ERC20/extensions/ERC7540.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ abstract contract ERC7540 is ERC4626, IERC7540 {
*/
function _generateRequestId(address controller, uint256 input) internal virtual returns (uint256) {
address sender = _msgSender();
return uint256(keccak256(abi.encodePacked(block.timestamp, block.prevrandao, sender, controller, input)));
return uint256(keccak256(abi.encodePacked(block.number, sender, controller, input)));
}

/**
Expand Down

0 comments on commit f4092f3

Please sign in to comment.