Code Monkey home page Code Monkey logo

multicall's Issues

Got "TypeError: MultiCall is not a constructor" when using it

Minimal code to reproduce:

script/min.js:

const MultiCall = require('@indexed-finance/multicall');

async function main() {
    new MultiCall(ethers.provider);
}

main()
    .then(() => process.exit(0))
    .catch((error) => {
        console.error(error);
        process.exit(1);
    });

Then run npx hardhat run script/min.js, will report:

TypeError: MultiCall is not a constructor
    at main (/Users/xuzhiqiang/Desktop/workspace/opensource/solidity/scripts/min.js:4:5)
    at Object.<anonymous> (/Users/xuzhiqiang/Desktop/workspace/opensource/solidity/scripts/min.js:7:1)

golang support

hi, I think it's the most generic multicall I have ever seen, how can I use it by golang?

Max code size exceeded error

First of all, this no-deploy constructor-based multicall is ingenious! I really like it
But there is one limitation that I have just come across trying to query too big of a multicall. Contracts have a max code size of 24kB, so these static multicalls are also bound by this limitation. Huge multicalls will return

reason: 'processing response error',
code: 'SERVER_ERROR',
body: '{"jsonrpc":"2.0","id":46,"error":{"code":-32000,"message":"max code size exceeded"}}'

I think this should be noted in the README somewhere as a caveat of this approach.

.

Apologies please delete

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.