Skip to content
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

Update AggregateMessageOrigin #1024

Merged
merged 11 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes config
  • Loading branch information
claravanstaden authored and claravanstaden committed Nov 28, 2023
commit af56dda07264e30020e0042287114614cdabd121
3 changes: 3 additions & 0 deletions parachain/runtime/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ parachain-info = { package = "staging-parachain-info", path = "../../../polkadot
parachains-common = { path = "../../../polkadot-sdk/cumulus/parachains/common", default-features = false }
parachains-runtimes-test-utils = { path = "../../../polkadot-sdk/cumulus/parachains/runtimes/test-utils", default-features = false }
bridge-hub-rococo-runtime = { path = "../../../polkadot-sdk/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo", default-features = false }
asset-hub-rococo-runtime = { path = "../../../polkadot-sdk/cumulus/parachains/runtimes/assets/asset-hub-rococo", default-features = false }
assets-common = { path = "../../../polkadot-sdk/cumulus/parachains/runtimes/assets/common", default-features = false }

# Ethereum Bridge (Snowbridge)
Expand Down Expand Up @@ -104,6 +105,7 @@ std = [
"cumulus-primitives-core/std",
"cumulus-primitives-utility/std",
"bridge-hub-rococo-runtime/std",
"asset-hub-rococo-runtime/std",
"assets-common/std",
"parachains-runtimes-test-utils/std",
"frame-benchmarking/std",
Expand Down Expand Up @@ -169,6 +171,7 @@ runtime-benchmarks = [
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
"cumulus-primitives-utility/runtime-benchmarks",
"bridge-hub-rococo-runtime/runtime-benchmarks",
"asset-hub-rococo-runtime/runtime-benchmarks",
"assets-common/runtime-benchmarks",
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
Expand Down
7 changes: 4 additions & 3 deletions parachain/runtime/tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ mod test_cases;

use bridge_hub_rococo_runtime::{xcm_config::XcmConfig, Runtime, RuntimeEvent, SessionKeys};
use codec::Decode;
use parachains_common::{snowbridge_config::BridgeHubEthereumBaseFeeInRocs, AccountId, AuraId};
use parachains_common::{AccountId, AuraId};
use asset_hub_rococo_runtime::xcm_config::bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC;
use sp_core::H160;
use sp_keyring::AccountKeyring::Alice;

Expand All @@ -27,7 +28,7 @@ pub fn transfer_token_to_ethereum_works() {
1000,
H160::random(),
H160::random(),
BridgeHubEthereumBaseFeeInRocs::get(),
BridgeHubEthereumBaseFeeInROC::get(),
Box::new(|runtime_event_encoded: Vec<u8>| {
match RuntimeEvent::decode(&mut &runtime_event_encoded[..]) {
Ok(RuntimeEvent::EthereumOutboundQueue(event)) => Some(event),
Expand Down Expand Up @@ -69,6 +70,6 @@ pub fn transfer_token_to_ethereum_insufficient_fund() {
1000,
H160::random(),
H160::random(),
BridgeHubEthereumBaseFeeInRocs::get(),
BridgeHubEthereumBaseFeeInROC::get(),
)
}
2 changes: 1 addition & 1 deletion parachain/runtime/tests/src/test_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use codec::Encode;
use frame_support::{assert_err, assert_ok, traits::fungible::Mutate};
use parachains_common::snowbridge_config::BridgeHubEthereumBaseFeeInRocs;
use asset_hub_rococo_runtime::xcm_config::bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC;
use parachains_runtimes_test_utils::{
AccountIdOf, BalanceOf, CollatorSessionKeys, ExtBuilder, ValidatorIdOf, XcmReceivedFrom,
};
Expand Down
Loading