I am having a bidding session where every time a person Bids on some product it checks the condition if the bidding session is valid or not,
I want to trigger a finalize bid function which will finalize the bid and will proceed with other formalities?
Is it possible? As of my thinking, for executing a function in the EVM, gas is needed, provided by some of the account holders only, either an EOA or a Contract Account.
Feel free to share an approach for doing this.
Thank You .
tokenInstance.approve(address(this), _bidValue)
Will it approve the contract to transfer tokens from the msg.sender to itself , UsingtransferFrom
?X
callsapprove(Y, n)
, thenY
can transfer up ton
ofX
's tokens viatransferFrom(X, Z, n)
.