I have used solidity smart contracts since 3 months ago, but I never used the decorator "payable".
Is it sometimes necessary to use a payable function?
I have used solidity smart contracts since 3 months ago, but I never used the decorator "payable".
Is it sometimes necessary to use a payable function?
Payable is necessary if you want the method to be able to receive funds or a "value".
For example, if I create a crowdsale-contract the payable function will be handling the receiving of the funds.