Giter VIP home page Giter VIP logo

Comments (5)

kaihiroi avatar kaihiroi commented on June 19, 2024 1

I agree that implementing mc.reset() and incorporating a reset within mc.deploy() makes a lot of sense. I'll go ahead and implement those changes.

from mc.

kaihiroi avatar kaihiroi commented on June 19, 2024

I find the idea of JIT EVM really fascinating. However, it seems that currently, there's no support for JIT execution of generic contract code, so it might be best to wait for native support in Foundry. In the meantime, keeping method chains short can be a workaround to avoid the Stack Too Deep compile error. This approach might result in some repetitive code, but using:

mc.init("hogehoge");
mc.use(FunctionA);
mc.use(FunctionB);
mc.deploy();

instead of chaining them together like:

mc.init("hogehoge").use(FunctionA).use(FunctionB).deploy();

can be effective.

from mc.

shogochiai avatar shogochiai commented on June 19, 2024

It sounds good for a bundle, although, could you suggest some ideas on multi-bundle deployment script usecase.

The mc is preserving internal state and cache-related problems might undermine stability of deployment process.

I guess mc.reset(); alike cache cleaner is good for now. Or we can reset state inside mc.deploy(); logic.

from mc.

shogochiai avatar shogochiai commented on June 19, 2024

Okay, close this issue when you merged that feature.

from mc.

kaihiroi avatar kaihiroi commented on June 19, 2024

I've implemented mc.reset(). I also experimented with incorporating a reset within mc.deploy(), but decided against it for now since it would make toProxyAddress(), which is likely used in many use cases, unavailable after deployment. It's possible to preserve just the proxy context, so if needed, please feel free to reopen this issue.

from mc.

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.