-
Notifications
You must be signed in to change notification settings - Fork 5
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
Deployed bytecode error #6
Comments
Are you trying to read contract storage (considering it's a |
No, the contract storage isn't being read or modified. It could be a However, this problem persisted even when I used a |
Please attach a minimum reproducible example and I'll take a look. |
Without looking at your code, it seems the problem is that the I took a quick look at the parity-ethereum/open-ethereum codebase and it looks like it's only called on contract creation or cross contract calls. So I would guess your bytecode has at least one of those opcodes in it, i.e., |
Sure, here is a simple reproduction. Just install, build, and test and you should see the same failure. That's interesting. Was chatting with @HeikoFisch about it on our side, and we were thinking it might be due to the usage of |
If I recall correctly, all Ethereum "builtin" functions like |
Yeah, they would appear as contract calls in the compiled code. So even though this is accepted as |
There's currently no plans for feature development on this project, but I filed a new issue to track this feature request. See #7. |
Awesome, thanks! |
Trying to use this package to run
view
functions, and running into some strange issues.When I try to call
execute
with the bytecode retrieved frometh_getCode
(the runtime/deployed bytecode), I get a rust panic error:Interestingly enough, when using the init/creation bytecode, the error disappears and the output of the
execute
function once converted to a hex string is the same as the deployed bytecode returned frometh_getCode
. Any idea on what might be causing these errors?Here is a code snippet (running in node env, not browser):
The text was updated successfully, but these errors were encountered: