Skip to content

Commit

Permalink
Add missing bidInAuction test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrishang committed Oct 25, 2023
1 parent eca3e4e commit 369ff59
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 369ff59

Please sign in to comment.