-
Notifications
You must be signed in to change notification settings - Fork 111
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
Technical Support Required - FxPortal Implementation Fail with error ‘Leaf index is too big’
(Goerli/Mumbai)
#28
Comments
Hi @QEDK is this something that you can assist with? I'm unable to find any information about how to resolve a |
Hi @jdkanani is this something that you can assist with? I'm unable to find any information about how to resolve a |
I'm posting here because I've already taken the following actions to get support for this issue and have not received a response: Multiple tickets submitted to: https://polygon.technology/contact-us/ |
Hi @jdkanani - I wanted to provide some more information about this issue. On Mumbai, you can see I submit a withdraw/burn transaction here: https://mumbai.polygonscan.com/tx/0xae1c8793cc900f22676b348802d020790057ce9fb82cd9d7404ebd3c85b5fea0 I define a
and a
You'll note that I am submitting the I submit this burnproof as input to my Root contract's |
Hi @Raneet10 Thanks for the quick response, and that payload did work! Successful Transaction: https://goerli.etherscan.io/tx/0x628ce213f9523db782d49e6f882cf2bc2a1bd7d5bce2f746edbebe20d94437a8 I am now wondering if the I define the following configuration for
and generate the burnproof as such:
Where I was sure to reference the same API endpoint as you sent over. However, the library produces a slightly different burnproof than the web request you sent over. Web Request Burnproof: I can use the GET web requests to continue with my development work but wanted to make sure I brought this discrepancy to your attention while you are working on the issue. Second Example Thanks again for your timely response! I really appreciate your support on this issue. |
The likely reason is that the matic.js version used to generate the proof is older. If the issue persists on the latest version, please open an issue at https://github.com/maticnetwork/matic.js/issues with the details you provided above. |
Hello! I'm the Lead Developer working on integrating GoldHunt Game (thegame.gold) with the Polygon network. I intend to build a custom implementation of the FxPortal Root & Child Contracts (https://github.com/fx-portal/contracts) to enable our community to move tokens between Ethereum <-> Polygon.
I need technical support on implementing this bridge on the Test networks (Goerli, Mumbai).
The problem: when I call
function receiveMessage(bytes memory inputData) public virtual
on my implementation of the Root contract, I am getting aFail with error 'Leaf index is too big'
error on the transaction.Failed Transactions (same error):
https://goerli.etherscan.io/tx/0x8b19cb0f540d5f6fba1ff19c5c64bb99ba15ee0cc33f1f24859fd26db18b9872
https://goerli.etherscan.io/tx/0x605f6c4ed73547d956c5635aae23e5b1c54f560e2f7e6e57bfed14827c0dcd6c
https://goerli.etherscan.io/tx/0x8906d30b22d7c49366a8641ed5613654c5ab280f897a16bdc97d3c38ea019260
I generate the burn proof as such:
Where https://mumbai.polygonscan.com/tx/0x76bd13760e3dbea702450f8741b405bf528be0078570d94c405a9183a8911ef9 is the Withdraw transaction I submitted on the Mumbai network.
My implementation of the
FxMintableERC20RootTunnel
is deployed at https://goerli.etherscan.io/address/0xC0Af0b1a10F2417D62EE044BC99dB1b40b4DC82e - you'll notice a number of failed transactions all throwing the same error.My implementation of the
FxMintableERC20ChildTunnel
is deployed at https://mumbai.polygonscan.com/address/0x38530B465C2937b6f3fB7559a796156D2a0A9f02 - I submitted the Withdraw transaction on Mumbai to this contract (see above) over 24 hours ago.I am attempting to send GGold (ERC20) back and forth across my tunnel, and am unable to resolve the last step to receive the funds back from the Tunnel on Goerli due to the error above.
GGold (Goerli) - https://goerli.etherscan.io/address/0xbdCDF80D26DDA1ae2F9C0003995d160F4893F20A
pGGold (Polygon) - https://mumbai.polygonscan.com/address/0xC440ddBA14e585fdF395bD74B85797e41fd8317c
I can see that the error is ultimately being thrown by the
Merkle
library defined as such:but this entire section of code was defined as part of the
FxBaseRootTunnel.sol
file defined in thefx-portals
repo which I am using an exact copy of so I'm not sure how to debug this issue.Please advise on how to resolve this issue - I've already read through https://docs.polygon.technology/docs/develop/l1-l2-communication/fx-portal/ and this issue is not covered and I am unable to find any other sources online about how to resolve it.
Any help you can provide would be greatly appreciated, as we're excited about being able to onboard thousands of new users to the Polygon network once we're able to build out this infrastructure!
The text was updated successfully, but these errors were encountered: