-
Notifications
You must be signed in to change notification settings - Fork 1
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
Register token with inbound fixture #106
Conversation
@@ -100,7 +100,7 @@ pub mod accounts { | |||
pub const CHARLIE: &str = "Charlie"; | |||
pub const DAVE: &str = "Dave"; | |||
pub const EVE: &str = "Eve"; | |||
pub const FERDIE: &str = "Ferdei"; | |||
pub const FERDIE: &str = "Ferdie"; |
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.
Nice! :)
EthereumBeaconClient::store_execution_header( | ||
register_asset_message.message.proof.block_hash, | ||
register_asset_message.execution_header, | ||
0, | ||
H256::default(), | ||
); | ||
|
||
EthereumInboundQueue::submit( | ||
RuntimeOrigin::signed(BridgeHubRococoSender::get()), | ||
register_asset_message.message, | ||
) | ||
.unwrap(); |
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.
Hmmm I'm not sure this change is a good one. What do you think is the benefit of changing this? I feel like the previous way is clearer to read and understand what is happening, imo.
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.
To not expose the internal implementation details to the tests.
More context in Snowfork/snowbridge#1115 (comment)
* Register token with inbound fixture * Import snowbridge-pallet-inbound-queue-fixtures * Cleanup Cargo.toml * Update emulated test * Fix emulated test * Rename to register_token
No description provided.