Skip to content

Commit

Permalink
Use a cast to bytes4 instead of LibBytes
Browse files Browse the repository at this point in the history
Co-authored-by: duncancmt <1207590+duncancmt@users.noreply.github.com>
  • Loading branch information
elenadimitrova and duncancmt committed Feb 27, 2023
1 parent b17c03d commit b797ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/governance/src/ZeroExTimelock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ contract ZeroExTimelock is TimelockController {
// function signature for rollback(bytes4,address)
// = bytes4(keccak256("rollback(bytes4,address)"))
// = 0x9db64a40
require(payload.readBytes4(0) == 0x9db64a40, "TimelockController: Not a rollback call");
require(bytes4(payload) == bytes4(0x9db64a40), "TimelockController: Not a rollback call");

_execute(target, value, payload);
emit CallExecuted(id, i, target, value, payload);
Expand Down

0 comments on commit b797ea7

Please sign in to comment.