ChainSafe / ChainBridge

🌉 Modular Multi-Directional Blockchain Bridge to interact with Multiple Networks; Ethereum, Ethereum Classic, Substrate, based chains. Stay tuned for ChainBridge Hub!
GNU Lesser General Public License v3.0
475 stars 300 forks source link

How to show transferred amount from ERC20 to Substrate parachain? #791

Closed AuroraLantean closed 2 years ago

AuroraLantean commented 2 years ago

After following the example https://chainbridge.chainsafe.io/local/ transferring an amount from ERC20 to substrate parachain, I cannot see the transferred amount in my parachain ALICE balance Same question from https://substrate.stackexchange.com/questions/3180/chainbridge-how-to-show-transferred-amount-from-erc20-to-substrate-parachain

https://github.com/ChainSafe/chainbridge-Substrate-chain#polkadot-js-apps

Expected Behavior

following the example https://chainbridge.chainsafe.io/local/ the transferred amount should show up in ALICE in parachain balance

Current Behavior

The ALICE account in parachain balance has not changed I think there is something missing in Polkadot JS Apps -> definitions to the developer settings: https://github.com/ChainSafe/chainbridge-Substrate-chain#polkadot-js-apps

{
  "chainbridge::ChainId": "u8",
  "ChainId": "u8",
  "ResourceId": "[u8; 32]",
  "DepositNonce": "u64",
  "ProposalVotes": {
    "votes_for": "Vec<AccountId>",
    "votes_against": "Vec<AccountId>",
    "status": "enum"
  },
  "Erc721Token": {
    "id": "TokenId",
    "metadata": "Vec<u8>"
  },
  "TokenId": "U256",
  "Address": "AccountId",
  "LookupSource": "AccountId"
}

I have to add "AccountInfo": "AccountInfoWithDualRefCount" on top of above settings to see account balances.

Possible Solution

transferring from Parachain to ERC20 is working. I think there is something missing in Polkadot JS Apps -> definitions to the developer settings: https://github.com/ChainSafe/chainbridge-Substrate-chain#polkadot-js-apps

Steps to Reproduce (for bugs)

following the example https://chainbridge.chainsafe.io/local/

Versions

ChainBridge commit (or docker tag): v1.1.5 Latest on Sep 1, 2021 chainbridge-solidity version: ?? chainbridge-substrate version: v1.3.0 Latest on Nov 17, 2020 Go version: go version go1.18.3