-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for _origin
implicit transition parameter
#921
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may have missed it (it's a lot of formatting changes) but it looks like we don't have a test case where _sender
and _origin
are different e.g. because of a chain call.
You're right. I'm now adding a test for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so helpful, thanks!
Reference: Zilliqa/scilla#921
* Document _origin. Reference: Zilliqa/scilla#921 * Apply suggestions from code review Co-authored-by: jjcnn <38888011+jjcnn@users.noreply.github.com> Co-authored-by: jjcnn <38888011+jjcnn@users.noreply.github.com>
Similar to
_sender
, all transitions now have an implicit paramter_origin
, to denote the source of a transaction. The blockchain now needs to supply this value similar to how it supplies_sender
. JSON interactions (such as in the IDE) will need to to be updated too.