From 84eb7fc3cad25aaf1233e206abfc09c92918f5bc Mon Sep 17 00:00:00 2001 From: Federico Giacon <58218759+fedgiac@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:50:31 +0000 Subject: [PATCH] Fix missing setting of pre-signature at start of test Co-authored-by: mfw78 <53399572+mfw78@users.noreply.github.com> --- test/GPv2Signing/SetPreSignature.t.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/GPv2Signing/SetPreSignature.t.sol b/test/GPv2Signing/SetPreSignature.t.sol index 19e6e21b..e653a1dd 100644 --- a/test/GPv2Signing/SetPreSignature.t.sol +++ b/test/GPv2Signing/SetPreSignature.t.sol @@ -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);