Skip to content

Commit

Permalink
Make base fee configurable from storage. (#1060)
Browse files Browse the repository at this point in the history
* initial

* update polkadot

* rename default

* update polkadot-sdk
  • Loading branch information
alistair-singh authored Dec 16, 2023
1 parent 6f14f70 commit 09a9253
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions parachain/runtime/tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

mod test_cases;

use asset_hub_rococo_runtime::xcm_config::bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC;
use asset_hub_rococo_runtime::xcm_config::bridging::to_ethereum::DefaultBridgeHubEthereumBaseFee;
use bridge_hub_rococo_runtime::{xcm_config::XcmConfig, Runtime, RuntimeEvent, SessionKeys};
use codec::Decode;
use parachains_common::{AccountId, AuraId};
Expand All @@ -28,7 +28,7 @@ pub fn transfer_token_to_ethereum_works() {
1000,
H160::random(),
H160::random(),
BridgeHubEthereumBaseFeeInROC::get(),
DefaultBridgeHubEthereumBaseFee::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 @@ -70,6 +70,6 @@ pub fn transfer_token_to_ethereum_insufficient_fund() {
1000,
H160::random(),
H160::random(),
BridgeHubEthereumBaseFeeInROC::get(),
DefaultBridgeHubEthereumBaseFee::get(),
)
}
6 changes: 3 additions & 3 deletions parachain/runtime/tests/src/test_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

//! Module contains predefined test-case scenarios for `Runtime` with bridging capabilities.
use asset_hub_rococo_runtime::xcm_config::bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC;
use asset_hub_rococo_runtime::xcm_config::bridging::to_ethereum::DefaultBridgeHubEthereumBaseFee;
use codec::Encode;
use frame_support::{assert_err, assert_ok, traits::fungible::Mutate};
use parachains_runtimes_test_utils::{
Expand Down Expand Up @@ -133,7 +133,7 @@ pub fn send_transfer_token_message_success<Runtime, XcmConfig>(
// fund asset hub sovereign account enough so it can pay fees
initial_fund::<Runtime>(
assethub_parachain_id,
BridgeHubEthereumBaseFeeInROC::get() + 1_000_000_000,
DefaultBridgeHubEthereumBaseFee::get() + 1_000_000_000,
);

let outcome = send_transfer_token_message::<Runtime, XcmConfig>(
Expand Down Expand Up @@ -269,7 +269,7 @@ pub fn send_transfer_token_message_fee_not_enough<Runtime, XcmConfig>(
// fund asset hub sovereign account enough so it can pay fees
initial_fund::<Runtime>(
assethub_parachain_id,
BridgeHubEthereumBaseFeeInROC::get() + 1_000_000_000,
DefaultBridgeHubEthereumBaseFee::get() + 1_000_000_000,
);

let outcome = send_transfer_token_message::<Runtime, XcmConfig>(
Expand Down

0 comments on commit 09a9253

Please sign in to comment.