0

I am starting to program my first real contract and would like to ask if it is possible to do this (something like an auction):

Someone deploys a contract. Participants pay for that auction to run (money that is stored in the contract). Then, after X time, the contract is executed. This execution is paid for with the money that was stored in the contract. Therefore, if there is not enough money, the execution will fail (and the participants will have to put more money next time).

P.S: I am also trying to prevent a participant from registering twice in the auction (or not registering if he doesn't have enough Ether). Should I store their addresses and check them every time a new participant registers?

Thanks in advance!

2
  • may anyone help me, please? – Joncarre May 1 at 12:44
  • May anyone help me? – Joncarre May 3 at 22:03

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.