Skip to content

Commit

Permalink
chore: assert on signature magic value
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed Jun 26, 2024
1 parent 5e0d4a3 commit c7a66f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/bin/poller/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,14 @@ async fn main() -> eyre::Result<()> {

// Check that the signature was correct
assert!(response.returnData[pre_interactions.len()].success);
assert_eq!(
FixedBytes::<4>::abi_decode(
&*response.returnData[pre_interactions.len()].returnData,
true
)?,
IERC1271::isValidSignatureCall::SELECTOR,
"Signature was not valid"
);

// Check that all post interactions were successful
response.returnData[pre_interactions.len() + 1..]
Expand Down

0 comments on commit c7a66f7

Please sign in to comment.