Giter Site home page Giter Site logo

Support of far calls and CREATE about evm HOT 5 CLOSED

hedgar2017 avatar hedgar2017 commented on August 31, 2024
Support of far calls and CREATE

from evm.

Comments (5)

sorpaas avatar sorpaas commented on August 31, 2024

Are you using the 0.x or 1.0-alpha version? In any case, yes the CREATE/CALL opcodes will trap on evm_core::Interpreter (for 0.x) or evm_interpreter::interpreter::EtableInterpreter (for 1.0-alpha). You are not supposed to use that directly unless you do something really customized.

CREATE/CALL requires a call stack, and that's implemented in evm. If you use 0.x, you can find StackExecutor which will be what you need. If you use 1.0-alpha, it allows much more customizibility, and the entrypoint is simply evm::transact. We'll add more docs soon!

from evm.

hedgar2017 avatar hedgar2017 commented on August 31, 2024

@sorpaas thanks for your response!
I will investigate the direct usage soon. Is it still possible to override the context values (e.g. chain_id) to make our test datasets work?
Our testing infrastructure is quite minimal. We just submit code, context, and calldata, and check if the return data and events returned match the expected data.

from evm.

hedgar2017 avatar hedgar2017 commented on August 31, 2024

@sorpaas are there any default implementations for Invoker for evm:transact?

from evm.

sorpaas avatar sorpaas commented on August 31, 2024

The standard invoker! https://docs.rs/evm/1.0.0-alpha.2/evm/standard/struct.Invoker.html

from evm.

hedgar2017 avatar hedgar2017 commented on August 31, 2024

The standard invoker! https://docs.rs/evm/1.0.0-alpha.2/evm/standard/struct.Invoker.html

Oh great, I'd overlooked it, thanks!

from evm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.