Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
In openzeppelin v4.8, revert message changed and error InvalidSignatureV is deprecated
  • Loading branch information
ImJeremyHe committed Dec 5, 2024
1 parent 4544d46 commit d30e4f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/foundry/ExpressLaneAuction.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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);
}

Expand Down

0 comments on commit d30e4f6

Please sign in to comment.