-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPC error [pancakeswap fork] #2029
Comments
Can you share with us the following information:
|
Consensus:ibft{pos} version 1.3.1[latest] Please check this |
Are you there! Please help me |
What are you setting for Gas on that transaction? Also, answer to this would be useful:
|
@nnlgsakib curious if you were able to resolve this or have any insights? I might have a similar issue here. |
No sir.I have been unsuccessful in solving this |
Did you get any solution? |
hey @nnlgsakib So I was working on a different set of contracts (not a dex like Pancake/Uniswap etc) to make them work on Polygon Edge, but I'm pretty sure the mechanism is the same. I managed to make it work. Shooting a bit in the dark here as I don't have all the info on your setup, but it does really look like a very similar issue. Background Polygon Edge has ACL contracts that have allow lists of addresses that can deploy contracts on the network. Since you deployed the contracts, your address is on the list. What you might be missing though is this: when you do an add liquidity for the first time for a pair that doesn't exist yet, the factory contract needs to deploy a liquidity pair contract. And since the factory contract address is not on the So what you need to do is after you deploy your set of contracts, add the factory contract (or whatever contract that does the deployment when you call it) to the list of addresses allowed to do the deployments. Actually doing this is a bit of a quest, so documenting it here for you & others just in case. ACL addresses ACLs are actually precompiled contracts on the network and you work with them in the same way as you do with normal contracts—by making transactions. There are three main ACLs: Contract Deployer ACL, Transactions ACL, Bridge ACL. Here's the precompiled addresses:
So, to add a factory contract address to the Contracts Deployer ACL, you need to make a transaction from your Admin address (listed in genesis in Checking if an address is enabled You need to make an Here's how you construct this. Get the function signature for Here's an example for
Adding an address Adding an address is making a call to the Contracts Deployer ACL contract from an Admin address on that contract. Here's an example with ethers.js 5.x:
You can use the approach to manage the other ACLs too. Hope this helps! |
i just made the transaction according your instruction but still not working Sir, I am using ibft https://raw.githubusercontent.com/Mind-chain/setpos/main/genesis.json this is my genesis.json @Stefan-Ethernal @vcastellm please help me |
I've deployed a Pancakeswap fork on my Polygon-based blockchain today. Everything seems to be working well, but I'm encountering an issue when attempting to add liquidity.
Error logs found in my browser console
And unable to add liquidity
{
"code": -32603,
"message": "Internal JSON-RPC error.",
"data": {
"code": -32603,
"message": "unable to apply transaction even for the highest gas limit 5000000000: execution reverted"
},
"stack": "{\n "code": -32603,\n "message": "Internal JSON-RPC error.",\n "data": {\n "code": -32603,\n "message": "unable to apply transaction even for the highest gas limit 5000000000: execution reverted"\n },\n "stack": "Error: Internal JSON-RPC error.\n
}
The text was updated successfully, but these errors were encountered: