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

Commit

Permalink
rename storage key
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Dec 16, 2023
1 parent bb287ee commit 0043e6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
if items.iter().all(|(k, _)| {
k.eq(&bridging::XcmBridgeHubRouterByteFee::key()) |
k.eq(&bridging::XcmBridgeHubRouterBaseFee::key()) |
k.eq(&bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC::key())
k.eq(&bridging::to_ethereum::BridgeHubEthereumBaseFee::key())
}) =>
{
return true
Expand Down Expand Up @@ -861,7 +861,7 @@ pub mod bridging {
/// Needs to be more than fee calculated from DefaultFeeConfig FeeConfigRecord in snowbridge:parachain/pallets/outbound-queue/src/lib.rs
/// Polkadot uses 10 decimals, Kusama and Rococo 12 decimals.
pub const DefaultBridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000;
pub storage BridgeHubEthereumBaseFeeInROC: u128 = DefaultBridgeHubEthereumBaseFeeInROC::get();
pub storage BridgeHubEthereumBaseFee: u128 = DefaultBridgeHubEthereumBaseFeeInROC::get();
pub SiblingBridgeHubWithEthereumInboundQueueInstance: MultiLocation = MultiLocation::new(
1,
X2(
Expand All @@ -881,7 +881,7 @@ pub mod bridging {
SiblingBridgeHub::get(),
Some((
XcmBridgeHubRouterFeeAssetId::get(),
BridgeHubEthereumBaseFeeInROC::get(),
BridgeHubEthereumBaseFee::get(),
).into())
),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -896,16 +896,16 @@ fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
fn change_xcm_bridge_hub_ethereum_base_fee_by_governance_works() {
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
Runtime,
bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC,
bridging::to_ethereum::BridgeHubEthereumBaseFee,
Balance,
>(
collator_session_keys(),
1000,
Box::new(|call| RuntimeCall::System(call).encode()),
|| {
(
bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC::key().to_vec(),
bridging::to_ethereum::BridgeHubEthereumBaseFeeInROC::get(),
bridging::to_ethereum::BridgeHubEthereumBaseFee::key().to_vec(),
bridging::to_ethereum::BridgeHubEthereumBaseFee::get(),
)
},
|old_value| {
Expand Down

0 comments on commit 0043e6a

Please sign in to comment.