Comments (20)
@Ben-Haslam Hi,Ben.Have u fix this issue now?I stuck on it too.
from multicall.
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.
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.
from multicall.
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.
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.
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.
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.
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.
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.
@coinswapapp what platform did you use to compile the contracts?
from multicall.
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.
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.
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.
Unfortunately I never did. Instead I just started building my own interface from the ground up
from multicall.
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.
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.
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.
this is the address of the multicall that the uniswap team uses to call
0x1F98415757620B543A52E61c46B32eB19261F984
from multicall.
from multicall.
Related Issues (15)
- Use staticcall
- deploy to matic HOT 4
- Multicall address for sokol HOT 1
- Deduplicate HOT 3
- Can not call the function Aggregate - Multicall2.sol on BSC testnet HOT 1
- Polygon Testnet (Mumbai) block number lags behind provider current block number.
- Make it compatible for solc 0.5 compiler
- Added HECO Testnet + Mainnet Deployments
- Is withSigner required when calling aggregate method? HOT 2
- Big batch gets timeout
- Multicall supports writing function calls? HOT 1
- stackoverflow problem
- More networks .. anyone with the coins?
- Deploy to ropsten HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multicall.