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
Hey, thank you for bringing this up - as far as I know, we do not have a way to do this right now, which is very bizarre considering it is a much needed feature most apps , let alone a DeFi app.
For anyone reading - to draw an analogy:
Getting the origin caller, and the previous caller is not the same - this is why we have GetOrigCaller & PrevRealm.
The same needs to exist, but for coins.
I will add this to the next engineering call to be discussed. Thank you @r3v4s again for finding this issue.
EDIT: thinking about this a little more, there should only be one type of parsing coins - parsing coins from the immediate, previous caller (similar to what msg.value is in EVM). In @r3v4s's case, this would mean that the first realm only has access to coins sent in by the user, and the second realm only has access to coins sent in by the first realm.
FYI,
std.GetOrigSend()
will return very first coin that being sent in current stack frame.For example,
In above case, '1234ugnot' is origSend but what about '999ugnot'?
As view of ContractB, is there ways to parse 999ugnot (which isn't orig send) ??
txtar testing
The text was updated successfully, but these errors were encountered: