Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Nov 6, 2024
1 parent 32657dc commit 5272515
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ fn send_weth_asset_from_asset_hub_to_ethereum() {
});

BridgeHubWestend::execute_with(|| {
use bridge_hub_westend_runtime::xcm_config::TreasuryAccount;
type RuntimeEvent = <BridgeHubWestend as Chain>::RuntimeEvent;
// Check that the transfer token back to Ethereum message was queue in the Ethereum
// Outbound Queue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
use crate::imports::*;
use bridge_hub_westend_runtime::EthereumInboundQueue;
use hex_literal::hex;
use snowbridge_core::{AssetMetadata, TokenIdOf};
use snowbridge_core::AssetMetadata;
use snowbridge_router_primitives::inbound::{
v1::{Command, Destination, MessageV1, VersionedMessage},
GlobalConsensusEthereumConvertsFor,
EthereumLocationsConverterFor,
};
use sp_runtime::MultiAddress;
use testnet_parachains_constants::westend::snowbridge::EthereumNetwork;
Expand Down Expand Up @@ -171,11 +171,13 @@ fn transfer_relay_token() {
BridgeHubWestend::fund_accounts(vec![(assethub_sovereign.clone(), INITIAL_FUND)]);

let asset_id: Location = Location { parents: 1, interior: [].into() };
let expected_asset_id: Location =
Location { parents: 1, interior: [GlobalConsensus(Westend)].into() };
let _expected_asset_id: Location = Location {
parents: 1,
interior: [GlobalConsensus(ByGenesis(WESTEND_GENESIS_HASH))].into(),
};

let ethereum_sovereign: AccountId =
GlobalConsensusEthereumConvertsFor::<[u8; 32]>::convert_location(&Location::new(
EthereumLocationsConverterFor::<[u8; 32]>::convert_location(&Location::new(
2,
[GlobalConsensus(EthereumNetwork::get())],
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ use parachains_common::{AccountId, AuraId};
use sp_genesis_builder::PresetId;
use sp_keyring::Sr25519Keyring;
use testnet_parachains_constants::rococo::xcm_version::SAFE_XCM_VERSION;
use xcm::latest::WESTEND_GENESIS_HASH;

const BRIDGE_HUB_ROCOCO_ED: Balance = ExistentialDeposit::get();
use xcm::latest::WESTEND_GENESIS_HASH;
Expand Down

0 comments on commit 5272515

Please sign in to comment.