3

I am testing some things out with XCM and I want to make a ROC token transfer from one Rococo account to another Rococo account using XCM. I am calling the execute extrinsic and providing the TransferAsset XCM message.

For some reason, the transfer doesn't occur, but the status of the extrinsic is successful: https://rococo.subscan.io/extrinsic/6027042-2

To be more specific, the exact problem I have is that the ROC tokens don't get transferred from one account to the other one.

3
  • I'm a newbie to learn XCM Message, can you give me the script code for reference? Thank you. Sep 4, 2023 at 17:41
  • @DungNguyen Sure, the code is actually part of a project I am working on. You can view all the XCM code here. It contains native transfers, teleportation, and all the possible kinds of reserve transfers.
    – Szegoo
    Sep 5, 2023 at 5:27
  • Thank you so much. I will follow this repo. Good luck to you! Sep 5, 2023 at 19:58

1 Answer 1

2
+50

This is because your reftime is specified as 0, which is not enough, it will cause WeightLimitReached error, you can try to specify reftime as 3000000000

This is my test record: https://rococo.subscan.io/extrinsic/6078033-2

1
  • I thought leaving it at zero meant 'unlimited'. It seems like I was wrong :)
    – Szegoo
    Jul 3, 2023 at 6:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.