Skip to content

Commit

Permalink
Fix missing setting of pre-signature at start of test
Browse files Browse the repository at this point in the history
Co-authored-by: mfw78 <[email protected]>
  • Loading branch information
fedgiac and mfw78 authored Aug 12, 2024
1 parent e233612 commit 84eb7fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/GPv2Signing/SetPreSignature.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ contract SetPreSignature is Helper {
}

function test_should_emit_a_PreSignature_event_even_if_storage_does_not_change() public {
emit GPv2Signing.PreSignature(owner, orderUid, true);
vm.prank(owner);
executor.setPreSignature(orderUid, true);
vm.prank(owner);
vm.expectEmit(address(executor));
emit GPv2Signing.PreSignature(owner, orderUid, true);
Expand Down

0 comments on commit 84eb7fc

Please sign in to comment.