Code Monkey home page Code Monkey logo

Comments (20)

johnden avatar johnden commented on August 24, 2024 5

@Ben-Haslam Hi,Ben.Have u fix this issue now?I stuck on it too.

from multicall.

gsaint12 avatar gsaint12 commented on August 24, 2024 3

The problem here from my experience is that multicall smart contract you are using is not the exact match for Binance smart chain. You need to deploy the exact copy of Uniswap multicall contract to Smartchain mainnet or testnet for it to work appropriately.

from multicall.

tpmccallum avatar tpmccallum commented on August 24, 2024

Screen Shot 2020-09-22 at 4 08 31 pm

MetaMask - RPC Error: Internal JSON-RPC error.

I would love to diagnose this further, please let me know what additional information you require to move this forward.

from multicall.

tpmccallum avatar tpmccallum commented on August 24, 2024

Uploading Screen Shot 2020-09-22 at 4.10.14 pm.png…

from multicall.

levity avatar levity commented on August 24, 2024

Hi Timothy, you're more likely to get a helpful response from the Uniswap team. This doesn't appear to be an issue with multicall itself. Wishing you luck!

from multicall.

DevObs1 avatar DevObs1 commented on August 24, 2024

@tpmccallum

Hello Timothy,
I have the same issue. Did you find a solution to this issue?
I will be grateful for your help because I have been stuck on it for 2 days!
Thanks

from multicall.

tpmccallum avatar tpmccallum commented on August 24, 2024

Hi @DevObs1
I did not find a solution to this yet.

Things to check would be params like your chainId i.e. it seems that the front end gets params like chainId from external files like this constants.ts file from additional nodejs packages like @uniswap/sdk

export enum ChainId {
  MAINNET = 1,
  ROPSTEN = 3,
  RINKEBY = 4,
  GÖRLI = 5,
  KOVAN = 42
}

If you are using an Ethereum compatible network which is not one of the networks listed in the constants.ts file then you will probably need to do some unravelling and tweaking to any code that stores/references/hard-codes params such as chainId etc.

Sorry I can't be more helpful, hope this makes sense.

Kind regards
Tim

from multicall.

DevObs1 avatar DevObs1 commented on August 24, 2024

Hello @tpmccallum ,
I am working on a project in Binance Smart Chain, which uses a fork of uniswap sdk adapted to BSC.
Thank you for this info. I will watch them and share with you if I find a solution

from multicall.

Ben-Haslam avatar Ben-Haslam commented on August 24, 2024

Hey @tpmccallum,

I am forking the uniswap interface for a new testnet, and am also having this same issue. I have tried changing constants in the node modules like you suggest. Please update here if you fund a solution, I will do the same if I find a solution on my side.

Ben

from multicall.

coinswapapp avatar coinswapapp commented on August 24, 2024

it is relatively straightforward to solve this issue. we were able to resolve this issue in CoinSwap. Check the returned error parameters etc. For the same smart contract, different compiler (remix/waffle/truffle) all compile in a different way. It is a disaster that the system is not compatible. So the way it is working on uniswap does not mean it will work on your contract if you use a different platform to compile your contract and deploy them (of course, could be challenging to get verified on Etherscan)

from multicall.

Ben-Haslam avatar Ben-Haslam commented on August 24, 2024

@coinswapapp what platform did you use to compile the contracts?

from multicall.

coinswapapp avatar coinswapapp commented on August 24, 2024

do not use truffle or remix. the compiled contract by truffle/remix may not work correctly even if you try to call these methods manually on Etherscan. try wallfe

from multicall.

Ben-Haslam avatar Ben-Haslam commented on August 24, 2024

After using waffle to compile all the contracts, I dont have an error concerning Multicall anymore but still do have the error with Metamask:

MetaMask - RPC Error: Internal JSON-RPC error.
code: -32603, message: "Internal JSON-RPC error.", data: {…}}
code: -32603
data: {code: -32000, message: "execution reverted"}
message: "Internal JSON-RPC error."

from multicall.

coinswapapp avatar coinswapapp commented on August 24, 2024

then it will really depend on what kind of contract you are using or testing. E.g., are you using the exact copy of Uniswap contract or you have modified it.. but at least, it shows that you are on the right track.

from multicall.

Ben-Haslam avatar Ben-Haslam commented on August 24, 2024

Unfortunately I never did. Instead I just started building my own interface from the ground up

from multicall.

versedpro avatar versedpro commented on August 24, 2024

The problem here from my experience is that multicall smart contract you are using is not the exact match for Binance smart chain. You need to deploy the exact copy of Uniswap multicall contract to Smartchain mainnet or testnet for it to work appropriately.

Thanks a lot! you saved my day 🚀

from multicall.

GomezFabio avatar GomezFabio commented on August 24, 2024

Hi,
I had the same problem because I was listing an ERC20 token that has not allowance() and approval() functions. First check one by one that the ERC20 contracts have not been modified. Where possible use templates like OpenZeppelin.
I hope this can help you.
The multicall contract creates an array of calls and one of them fails when you try to create a pool.

from multicall.

skad0d0 avatar skad0d0 commented on August 24, 2024

The problem here from my experience is that multicall smart contract you are using is not the exact match for Binance smart chain. You need to deploy the exact copy of Uniswap multicall contract to Smartchain mainnet or testnet for it to work appropriately.

Thanks a lot! you saved my day 🚀

Thanks a lot. I redeployed the multicall contract and change the multicall contract address in my project and now it's working!

from multicall.

kelvin0x avatar kelvin0x commented on August 24, 2024

this is the address of the multicall that the uniswap team uses to call
0x1F98415757620B543A52E61c46B32eB19261F984

from multicall.

skad0d0 avatar skad0d0 commented on August 24, 2024

from multicall.

Related Issues (15)

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.