From d30e4f6c3f51a0c8cd748e82ca4499778b9e603b Mon Sep 17 00:00:00 2001 From: ImJeremyHe Date: Thu, 5 Dec 2024 14:34:57 +0800 Subject: [PATCH] Fix the test In openzeppelin v4.8, revert message changed and error InvalidSignatureV is deprecated --- test/foundry/ExpressLaneAuction.t.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/foundry/ExpressLaneAuction.t.sol b/test/foundry/ExpressLaneAuction.t.sol index 31652b752..99150f0cc 100644 --- a/test/foundry/ExpressLaneAuction.t.sol +++ b/test/foundry/ExpressLaneAuction.t.sol @@ -1377,7 +1377,7 @@ contract ExpressLaneAuctionTest is Test { // bad v means invalid sig // vm.expectRevert(ECDSAInvalidSignature.selector); - vm.expectRevert(abi.encodePacked("ECDSA: invalid signature 'v' value")); + vm.expectRevert(abi.encodePacked("ECDSA: invalid signature")); rs.auction.resolveMultiBidAuction(bid1, rs.bid0); bytes32 h0 = rs.auction.getBidHash( @@ -1394,12 +1394,12 @@ contract ExpressLaneAuctionTest is Test { // bad v means invalid sig // vm.expectRevert(ECDSAInvalidSignature.selector); - vm.expectRevert(abi.encodePacked("ECDSA: invalid signature 'v' value")); + vm.expectRevert(abi.encodePacked("ECDSA: invalid signature")); rs.auction.resolveMultiBidAuction(rs.bid1, bid0); // bad v means invalid sig // vm.expectRevert(ECDSAInvalidSignature.selector); - vm.expectRevert(abi.encodePacked("ECDSA: invalid signature 'v' value")); + vm.expectRevert(abi.encodePacked("ECDSA: invalid signature")); rs.auction.resolveSingleBidAuction(bid0); }