RefundableCrowdsale of OpenZeppelin. When its goal isn't reached, how do investors get refund?
By calling the
claimRefund() method? How do they call the method??
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
They sign a transaction to the contract's
It can be done from the command-line, from Mist, from MyEtherWallet and all that is required is knowledge of the contract address and function signature.
In practice, no one should expect the users to figure out how to accomplish that.
A reasonably user-friendly implementation would present a button that users press. They will have to expend a little gas to pay for processing.
The important thing is that users should approach the contract like a vending machine/ATM and pull their funds out. This is a best practice in contract design for some good reasons.
Hope it helps.