I would like to see an example of a function modified as payable in practice.
I would like for it to accept payment and hold the ether.
I would like to read another function in the same contract that can send the held ether to a specific address.
addressesetherpayableremixsolidity
I would like to see an example of a function modified as payable in practice.
I would like for it to accept payment and hold the ether.
I would like to read another function in the same contract that can send the held ether to a specific address.
Best Answer
A really basic example from https://programtheblockchain.com/posts/2017/12/15/writing-a-contract-that-handles-ether/: