Implementing Payments in the Auction

Learn how to add payments support to the Auction smart contract.

Now that we’ve learned how to use payments in Solidy, we'll add payment support in the Auction smart contract. After this lesson, users of our smart contract will be able to send bids to the auction and terminate the auction once it is over.

Adding new fields

To implement payment support in our smart contract, we first need to add a few additional fields and methods to keep track of the state of the bidding process.

Get hands-on with 1200+ tech skills courses.