From 369ff59c8a7649a1691670a7b93c3aa034d14474 Mon Sep 17 00:00:00 2001 From: Krishang Date: Wed, 25 Oct 2023 19:00:23 +0530 Subject: [PATCH] Add missing bidInAuction test --- .../bidInAuction/bidInAuction.t.sol | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/marketplace/english-auctions/bidInAuction/bidInAuction.t.sol b/src/test/marketplace/english-auctions/bidInAuction/bidInAuction.t.sol index 9f1134af0..ad7041106 100644 --- a/src/test/marketplace/english-auctions/bidInAuction/bidInAuction.t.sol +++ b/src/test/marketplace/english-auctions/bidInAuction/bidInAuction.t.sol @@ -265,6 +265,20 @@ contract BidInAuctionTest is BaseTest, IExtension { _; } + function test_bidInAuction_whenAuctionCurrencyIsERC20AndMsgValueSent() + public + whenCallIsNotReentrant + whenAuctionExists + whenAuctionIsActive + whenBidAmountIsNotZero + { + vm.deal(buyer, 1 ether); + + vm.prank(buyer); + vm.expectRevert("Marketplace: invalid native tokens sent."); + EnglishAuctionsLogic(marketplace).bidInAuction{ value: 1 }(auctionId, auctionParams.buyoutBidAmount); + } + function test_bidInAuction_whenBidAmountIsGtBuyoutPrice() public whenCallIsNotReentrant