As in EVM, a template method should be declared payable in order to receive incoming coins. If a non-payable method is the target of a CALL that includes a nonzero amount, that call should immediately fail. We likely want to use a macro for this, to make the DevEx straightforward.
Note: any method can be declared payable; this also applies to fallback (#203) and receive (#204)
As in EVM, a template method should be declared
payable
in order to receive incoming coins. If a non-payable method is the target of a CALL that includes a nonzero amount, that call should immediately fail. We likely want to use a macro for this, to make the DevEx straightforward.Note: any method can be declared
payable
; this also applies tofallback
(#203) andreceive
(#204)