Git Product home page Git Product logo

Comments (3)

P1sar avatar P1sar commented on June 23, 2024

Hey @pedro-haeser-cryptotao! It looks like vote transaction (0x3589d3ab8183d414aa4230ca14984e44c9fd953991500bb2b837337a9ea71f7d) somehow failed on blockchain, there could be dozens of reasons, so first of all, you should find logs of this transaction to understand why

from chainbridge.

pedro-haeser-cryptotao avatar pedro-haeser-cryptotao commented on June 23, 2024

Hi @P1sar , thanks for the clarifications. I tried the other way around -- bridging a NFT from Polygon Edge to Goerli in order to get logs easier from Etherscan.

It seems that during the proposal execution the transaction was reverted due to "Fail with error 'ERC721: operator query for nonexistent token'"

Just to ensure that I didn't do something fundamentally wrong during my steps...

  1. I added a minter role to the handler contract on Polygon Edge blockchain
  2. Minted token "0x54"
  3. Checked the owner of token 0x54: it was assigned to the Polygon Edge chainbridge admin account
  4. Approved the transfer from token 0x54 from ERC 721 contract to ERC 721 contract handler (both contracts on Polygon Edge)
  5. Called deposit method for token 0x54 setting the recipient as the Goerli ERC 721 contract address

These are the logs from last step:

INFO[07-01|13:40:47] Handling nonfungible deposit event       chain=polygon-edge
INFO[07-01|13:40:47] Attempting to resolve message            chain=goerli type=NonFungibleTransfer src=100 dst=5 nonce=1 rId=000000000000000000000000000000e389d61c11e5fe32ec1735b3cd38c69501
INFO[07-01|13:40:47] Creating erc721 proposal                 chain=goerli src=100 nonce=1
INFO[07-01|13:40:48] Watching for finalization event          chain=goerli src=100 nonce=1
INFO[07-01|13:40:49] Submitted proposal vote                  chain=goerli tx=0x4c4d106e2897606e984afb175ee9d668a26b4e7c94e1a4a3cdfeb2edc5ccb613 src=100 depositNonce=1 gasPrice=1500000014
INFO[07-01|13:43:35] Submitted proposal execution             chain=goerli tx=0x6596c7f067bf9b155c0fe0d153b3f27fee78ffad668025be96bfb7e8c61a98c6 src=100 dst=5 nonce=1 gasPrice=1500000014

And looking at Etherscan the proposal was successfully submitted, however the execution failed with the error above

Just wanted to check if you see anything wrong with the steps above while I keep troubleshooting it.
The reason why I ask that is because I am trying to transfer the NFT from Polygon Edge to Goerli... so I kinda of expected that the token shouldn't exist at Goerli that moment.

Thanks in advance!

from chainbridge.

P1sar avatar P1sar commented on June 23, 2024

You were trying to bridge ERC721 token that was not minted in advance.
If you want bridge to mint the token you need to set Mintable/Burnable param for this token and also grant Bridge as minter roles for your ERC721

from chainbridge.

Related Issues (20)

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.