Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Sending of custom token from sidechain to mainchain fails #8761

Closed
Tracked by #7226
ishantiw opened this issue Jul 19, 2023 · 0 comments · Fixed by #8797
Closed
Tracked by #7226

Sending of custom token from sidechain to mainchain fails #8761

ishantiw opened this issue Jul 19, 2023 · 0 comments · Fixed by #8797
Assignees
Milestone

Comments

@ishantiw
Copy link
Contributor

Expected behavior

Custom tokens can be sent from sidechain to mainchain account.

Actual behavior

Currently when we make a cross chain transfer of custom token from a sidechain to mainchain, it fails with below error even though in genesis-assets we define that mainchain supports all the tokens

27|mainchain_node_one  | apply:  In cmd.execute
27|mainchain_node_one  | apply: Error: In cmd.execute Error: tokenID 0400000100000000 is not supported
27|mainchain_node_one  |     at CrossChainTransferCommand.execute (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/modules/token/cc_commands/cc_transfer.js:67:19)
27|mainchain_node_one  |     at async SubmitMainchainCrossChainUpdateCommand.apply (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/modules/interoperability/base_cross_chain_update_command.js:223:13)
27|mainchain_node_one  |     at async SubmitMainchainCrossChainUpdateCommand.execute (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/modules/interoperability/mainchain/commands/submit_mainchain_cross_chain_update.js:70:21)
27|mainchain_node_one  |     at async StateMachine.executeTransaction (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/state_machine/state_machine.js:132:13)
27|mainchain_node_one  |     at async ABIHandler.executeTransaction (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/abi_handler/abi_handler.js:285:24)
27|mainchain_node_one  |     at async HighFeeGenerationStrategy.getTransactionsForBlock (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/engine/generator/strategies.js:45:75)
27|mainchain_node_one  |     at async Generator._generateBlock (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/engine/generator/generator.js:365:69)
27|mainchain_node_one  |     at async Generator._generateLoop (/Users/ishan/repos/sdk/lisk-sdk/framework/dist-node/engine/generator/generator.js:299:32)
27|mainchain_node_one  |     at async Timeout._onTimeout (/Users/ishan/repos/sdk/lisk-sdk/elements/lisk-utils/dist-node/job_handlers/scheduler.js:26:17)

And after this error when another CCU was sent then the node goes in loop where its not able to generate a block

27|mainchain_node_one  | 2023-07-13T11:15:40.163Z DEBUG MacBook-Pro-2 engine 7527 [id=b96b5b51ca4fd64f12222245cbabb30c78c5e66f6f71f13c70010d0e6430dbf7 height=105] Starting to process block
27|mainchain_node_one  | 2023-07-13T11:15:40.163Z DEBUG MacBook-Pro-2 engine 7527 [id=b96b5b51ca4fd64f12222245cbabb30c78c5e66f6f71f13c70010d0e6430dbf7 height=105] Processing valid block
27|mainchain_node_one  | 2023-07-13T11:15:40.163Z ERROR MacBook-Pro-2 engine 7527 [err=Invalid state root `Not matching with expected`] Fail to execute block.
27|mainchain_node_one  | 2023-07-13T11:15:40.168Z DEBUG MacBook-Pro-2 application 7527 [moduleName=random] Executing verifyAssets

Steps to reproduce

  • Make a cross chain transfer of a custom token from sidechain to mainchain.

Which version(s) does this affect? (Environment, OS, etc...)

v6.0.0-beta.5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants