-
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
Add ability to execute "builtin" ethereum functions #7
Comments
If we were to implement this ourselves and PR it, how would this work? |
So all we should need to do is to implement the following I think?
|
@ArjunBhuptani that seems like a good place to start. You also need to keep track of the callstack depth and implement the |
Ah good tip, thanks! |
@ArjunBhuptani I updated the repo to use the latest openethereum packages, since everything moved over from paritytech to a new org. You'll want to pull the latest changes. |
Alright, so working on creating a test that will emulate this properly within our fork. Having a bit of trouble getting the regular node tests passing, are there specific instructions for running those? |
Right now the workflow is:
but I seem to be messing things up along the way |
I seem to be getting this error when trying to merge the browser and node packages: |
Yeah, as soon as I use the imports from |
You should only need steps 2 and 3, as listed above. Maybe you don't have (To install wasm-pack, you can use the docker container with all the required deps or install it directly with this line https://github.com/armaniferrante/pure-evm/blob/master/.circleci/docker/Dockerfile#L18) |
yeah there was a different error when I didn't have wasm installed. not sure what's off with my build step quite yet, but found a workaround so i'll probably come back to that later |
PR: #13 |
Builtin functions like
sha256
andrecover
execute as cross contract calls to fixed account addresses on Ethereum.Currently, pure-evm doesn't allow any cross contract calls whatsoever.
It might be desireable to special case "builtin" functions as requested by #6.
The text was updated successfully, but these errors were encountered: