ReceiveNative: Send and run code #608
Stebalien
started this conversation in
Enhancements - Technical
Replies: 2 comments 2 replies
-
GasReceive? |
Beta Was this translation helpful? Give feedback.
1 reply
-
So, I've discussed this with my team (and others), and the solution is just kind of messy:
We'd prefer to just (optionally) run code on method-0, but then we'd have to provide some way to transfer value without running any user code. So I'm withdrawing this proposal for now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the default way to transfer funds is to invoke method-0. However, this method is guaranteed to not run code.
It would be nice to have a standard way to transfer funds that does run code.
This would allow smart smart contracts to react to deposited funds by default.
Bikeshed: I hate the name
ReceiveNative
, butReceive
and transfer already taken. This method needs a very generic name as it'll likely be implemented on all contracts by default.Beta Was this translation helpful? Give feedback.
All reactions