-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add register ether command to control tool #1361
Conversation
pub fn get_ether_id(chain_id: u64) -> Location { | ||
return Location { | ||
parents: 2, | ||
interior: X1([GlobalConsensus(NetworkId::Ethereum { chain_id })]), | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check paritytech/polkadot-sdk#6855 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was merged by parity before discussing with Vincent. But I think we would like it to be { parents: 2, interior: X1([GlobalConsensus(Ethereum { chain_id: 1 })]) }
because in XCM this is the convention. I.e. The relaychain token and the destination of the relaychain share the same location. So in our case the bridge location and the bridge native token also shares the same location.
b6ffe80
to
ad05a6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
ad05a6e
to
8490979
Compare
control/preimage/src/main.rs
Outdated
#[arg(long, value_name = "ASSET_DISPLAY_NAME", default_value_t = String::from("Ether"))] | ||
ether_name: String, | ||
/// The Ether asset symbol | ||
#[arg(long, value_name = "ASSET_SYMBOL", default_value_t = String::from("ETH.e"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it was only bridge UIs that appended ".e" to the token symbol?
Shouldn't we default to "ETH" to be consistent with "WETH" registered on AssetHub?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved in 9132e64
Resolves: SNO-1222, SNO-1251