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

xcm integration test #20

Merged
merged 4 commits into from
Nov 7, 2023
Merged

Conversation

yrong
Copy link

@yrong yrong commented Nov 7, 2023

βœ„ -----------------------------------------------------------------------------

Thank you for your Pull Request! πŸ™ Please make sure it follows the contribution guidelines outlined in
this document and fill
out the sections below. Once you're ready to submit your PR for review, please
delete this section and leave only the text under the "Description" heading.

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context,
including:

  • What does this PR do?
  • Why are these changes needed?
  • How were these changes implemented and what do they affect?

Use Github semantic
linking

to address any open issues this PR relates to or closes.

Fixes # (issue number, if applicable)

Closes # (issue number, if applicable)

Checklist

  • My PR includes a detailed description as outlined in the "Description" section above
  • My PR follows the labeling requirements of this project (at minimum one label for T
    required)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

You can remove the "Checklist" section once all have been checked. Thank you for your contribution!

βœ„ -----------------------------------------------------------------------------

const INITIAL_FUND: u128 = 5_000_000_000 * ROCOCO_ED;
const CHAIN_ID: u64 = 15;
const DEST_PARA_ID: u32 = 1000;
const ETHEREUM_SOVEREIGN: [u8; 32] =

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use this name in start-services.sh.

Suggested change
const ETHEREUM_SOVEREIGN: [u8; 32] =
const SNOWBRIDGE_SOVEREIGN: [u8; 32] =

Comment on lines 331 to 334
let fee_asset = MultiAsset {
id: Concrete(MultiLocation { parents: 1, interior: Here }),
fun: Fungible(1_000_000_000_000), //1 ROC
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you remove this fee asset, the call should pass. The fee_asset is the fee for the target chain(Ethereum). We charge 0 fees on the target chain so we make the fee asset WETH and ignore it when converting the xcm. There still will be an additional fee of DOT charged to the user for delivering the message on AssetHub when they call the reserve transfer extrinsic.

@alistair-singh alistair-singh force-pushed the ron/xcm-integration-test branch from 5b4373d to 589033b Compare November 7, 2023 10:20
Base automatically changed from alistair/new-reserve-transfer to snowbridge November 7, 2023 14:19
@alistair-singh alistair-singh merged commit 0b22697 into snowbridge Nov 7, 2023
3 of 7 checks passed
@alistair-singh alistair-singh deleted the ron/xcm-integration-test branch November 7, 2023 14:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants