0


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?

maroodb
  • 1,111
  • 1
  • 10
  • 32

1 Answers1

1

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.

jasper
  • 689
  • 6
  • 21