0

For Auction smart contract, the seller initiates by call endpoint start. That function in turn ends off with a timer to automatically end the auction.

void $ awaitTime deadline
endAuction 

But I want want to add a cancel endpoint to allow cancelling the auction prior to the deadline. Said endpoint of course must only be called by the seller. The problem is that awaitTime blocks for the same wallet (i.e., seller), and hence prevents such interaction. So how can I achieve what I want?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.