Skip to content
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

Merged
merged 1 commit into from
Aug 16, 2018
Merged

Conversation

chfast
Copy link
Collaborator

@chfast chfast commented Jul 3, 2018

Alternative 1

Pass the contract address in the first memory page. We would have to specify that the this address is in at index 0, caller address at index 32, value at index 64, ...

@chfast chfast requested review from axic and ehildenb July 3, 2018 12:31
@chfast chfast mentioned this pull request Jul 5, 2018
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
Copy link
Member

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?

Copy link
Collaborator Author

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.

Copy link
Member

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?

Copy link
Collaborator Author

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.

@axic
Copy link
Member

axic commented Jul 9, 2018

I think it looks good except the wast code. Probably the rest of the spec uses the other wording too which could be updated.

@chfast chfast added this to Under discussion in Revision 4 Aug 1, 2018
@axic axic merged commit f2dd66f into ewasm:master Aug 16, 2018
@axic axic removed the in progress label Aug 16, 2018
@axic axic moved this from Under discussion to Decided in Revision 4 Aug 16, 2018
@chfast
Copy link
Collaborator Author

chfast commented Aug 16, 2018

Thanks for handling this.

@chfast chfast deleted the eei-get-address branch August 16, 2018 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Revision 4
Decided
Development

Successfully merging this pull request may close these issues.

None yet

3 participants