You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
This discussion was converted from issue #202 on January 02, 2025 10:39.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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)Beta Was this translation helpful? Give feedback.
All reactions