Replies: 1 comment
-
Totally agree: while it makes total sense to be able to transfer token(s) to a contract you're calling (as you might want the contract to do smth with those tokens during the function call), creating a streaming relationship with the contract together with the function call doesn't sound like a natural thing to want to do. I've tried to come up with specific use-cases for which this would make sense - and only thought about some fairly niche/unusual scenarios. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In standard EVM, it is possible to transfer ETH and call a method on a contract at the same time. In SabVM, will also be possible with MNTs, i.e., it will be possible to transfer multiple tokens and call a method.
There comes a question of whether this functionality should be supported for streaming. Should we allow users to start a stream to a contract and call a method on it?
I think the sensible thing to do is to disallow such behavior:
Related: see my proposed Solidity spec.
Beta Was this translation helpful? Give feedback.
All reactions