From 9caf64e0fe7670abaf32aec6096eccbb7df0473f Mon Sep 17 00:00:00 2001 From: olgaklimenko Date: Mon, 18 Oct 2021 16:53:09 +0700 Subject: [PATCH] fix bid after auction has expired --- .../src/Plutus/Contracts/NftMarketplace/OffChain/User.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MetaLamp/nft-marketplace/src/Plutus/Contracts/NftMarketplace/OffChain/User.hs b/MetaLamp/nft-marketplace/src/Plutus/Contracts/NftMarketplace/OffChain/User.hs index 273d4b581..5248b05b1 100644 --- a/MetaLamp/nft-marketplace/src/Plutus/Contracts/NftMarketplace/OffChain/User.hs +++ b/MetaLamp/nft-marketplace/src/Plutus/Contracts/NftMarketplace/OffChain/User.hs @@ -275,7 +275,7 @@ bidOnAuction marketplace BidOnAuctionParams {..} = do Core.getAuctionFromBundle bundleEntry currTime <- currentTime - -- when auction is expired autocall completeAuction and throwError + -- when auction has expired call completeAuction and throwError when (currTime > (Auction.aEndTime auction)) $ do completeAnAuction marketplace $ CloseLotParams boapItemId throwError "Auction has expired."