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

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Nov 7, 2023
1 parent 589033b commit 2edb0e6
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use snowbridge_router_primitives::inbound::{Command, Destination, MessageV1, Ver
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] =
const SNOWBRIDGE_SOVEREIGN: [u8; 32] =
hex!("da4d66c3651dc151264eee5460493210338e41a7bbfca91a520e438daf180bf5");
const WETH: [u8; 20] = hex!("87d1f7fdfEe7f651FaBc8bFCB6E086C278b77A7d");
const ASSETHUB_SOVEREIGN: [u8; 32] =
Expand Down Expand Up @@ -176,7 +176,7 @@ fn register_token() {
)]);

// Fund ethereum sovereign in asset hub
AssetHubRococo::fund_accounts(vec![(ETHEREUM_SOVEREIGN.into(), 5_000_000_000_000 * ROCOCO_ED)]);
AssetHubRococo::fund_accounts(vec![(SNOWBRIDGE_SOVEREIGN.into(), 5_000_000_000_000 * ROCOCO_ED)]);

BridgeHubRococo::execute_with(|| {
type RuntimeEvent = <BridgeHubRococo as Chain>::RuntimeEvent;
Expand Down Expand Up @@ -222,7 +222,7 @@ fn send_token() {

// Fund ethereum sovereign in asset hub
AssetHubRococo::fund_accounts(vec![
(ETHEREUM_SOVEREIGN.into(), INITIAL_FUND),
(SNOWBRIDGE_SOVEREIGN.into(), INITIAL_FUND),
(ASSETHUB_SOVEREIGN.into(), INITIAL_FUND),
(AssetHubRococoReceiver::get(), INITIAL_FUND),
]);
Expand Down Expand Up @@ -281,7 +281,7 @@ fn reserve_transfer_token() {

// Fund ethereum sovereign in asset hub
AssetHubRococo::fund_accounts(vec![
(ETHEREUM_SOVEREIGN.into(), INITIAL_FUND),
(SNOWBRIDGE_SOVEREIGN.into(), INITIAL_FUND),
(ASSETHUB_SOVEREIGN.into(), INITIAL_FUND),
(AssetHubRococoReceiver::get(), INITIAL_FUND),
]);
Expand Down Expand Up @@ -328,12 +328,7 @@ fn reserve_transfer_token() {
RuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {},
]
);
let fee_asset = MultiAsset {
id: Concrete(MultiLocation { parents: 1, interior: Here }),
fun: Fungible(1_000_000_000_000), //1 ROC
};
let assets = vec![
fee_asset,
MultiAsset {
id: Concrete(MultiLocation {
parents: 2,
Expand Down

0 comments on commit 2edb0e6

Please sign in to comment.