-
Notifications
You must be signed in to change notification settings - Fork 126
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
EEI: Improved docs for getAddress() #106
Conversation
eth_interface.md
Outdated
@@ -31,12 +31,18 @@ Subtracts an amount to the gas counter | |||
|
|||
## getAddress | |||
|
|||
Gets address of currently executing account and loads it into memory at | |||
the given offset. | |||
```wast |
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.
Why is this wast example needed?
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 though that providing a wast function declaration would look nice.
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.
is i32ptr
a valid alias of i32
in wast?
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.
No. It's only the alias here for easier reading.
I think it looks good except the wast code. Probably the rest of the spec uses the other wording too which could be updated. |
Thanks for handling this. |
Alternative 1
Pass the contract address in the first memory page. We would have to specify that the
this
address is in at index0
,caller
address at index32
,value
at index64
, ...