-
Notifications
You must be signed in to change notification settings - Fork 987
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
Support eth_getBalance in mapping #5202
Conversation
d5b71d3
to
6fee9e2
Compare
f1249d3
to
ad9dd45
Compare
eth_adapter: &EthereumAdapter, | ||
ctx: HostFnCtx<'_>, | ||
wasm_ptr: u32, | ||
) -> Result<AscPtr<AscBigInt>, HostExportError> { |
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.
Do we need to charge gas for this call? I am not sure about the mechanics/reasoning of gas, but it feels wrong to make this free.
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.
Right, this shouldn't be gas free. @leoyvens how would we determine a good gas value for eth_getBalance
?
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 suppose we can start with charging the same we charge for eth_call
.
For the failing unit tests, if you rebase onto latest master, the tests should pass. |
Oh, one more thing: do we need a new spec or API version because this adds a host fn? |
193a93c
to
4232b32
Compare
4232b32
to
eb46cec
Compare
84c073b
to
6ecc831
Compare
Closes #895