diff --git a/Cargo.lock b/Cargo.lock index a6315f9ed6..980e6b0d0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5298,7 +5298,7 @@ dependencies = [ [[package]] name = "node-cli" -version = "0.9.2" +version = "0.9.3" dependencies = [ "cumulus-client-cli", "cumulus-client-service", diff --git a/node/cli/Cargo.toml b/node/cli/Cargo.toml index f071ba3ca1..0880f8e637 100644 --- a/node/cli/Cargo.toml +++ b/node/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "node-cli" -version = "0.9.2" +version = "0.9.3" authors = ["Liebi Technologies "] description = "Bifrost Parachain Node" build = "build.rs" diff --git a/pallets/vesting/src/lib.rs b/pallets/vesting/src/lib.rs index 9b1369a907..36078b9186 100644 --- a/pallets/vesting/src/lib.rs +++ b/pallets/vesting/src/lib.rs @@ -211,15 +211,15 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { - // fn on_runtime_upgrade() -> frame_support::weights::Weight { - // if !VestingStartAt::::exists() { - // let now = >::block_number(); - // VestingStartAt::::put(now); - // T::DbWeight::get().reads_writes(1, 1) - // } else { - // 0 - // } - // } + fn on_runtime_upgrade() -> frame_support::weights::Weight { + if !VestingStartAt::::exists() { + let now = >::block_number(); + VestingStartAt::::put(now); + T::DbWeight::get().reads_writes(1, 1) + } else { + 0 + } + } } #[pallet::call] diff --git a/runtime/bifrost/src/lib.rs b/runtime/bifrost/src/lib.rs index e6a4859df1..e2a0ea29e8 100644 --- a/runtime/bifrost/src/lib.rs +++ b/runtime/bifrost/src/lib.rs @@ -133,7 +133,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("bifrost"), impl_name: create_runtime_str!("bifrost"), authoring_version: 1, - spec_version: 902, + spec_version: 903, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -186,29 +186,6 @@ impl Contains for CallFilter { match *c { // call banned - // BNC transfer - Call::Currencies(orml_currencies::Call::transfer_native_currency(..)) => false, - Call::Currencies(orml_currencies::Call::transfer( - _, - CurrencyId::Native(TokenSymbol::BNC), - _, - )) => false, - Call::Tokens(orml_tokens::Call::transfer( - _, - CurrencyId::Native(TokenSymbol::BNC), - _, - )) => false, - Call::Tokens(orml_tokens::Call::transfer_all( - _, - CurrencyId::Native(TokenSymbol::BNC), - _, - )) => false, - Call::Tokens(orml_tokens::Call::transfer_keep_alive( - _, - CurrencyId::Native(TokenSymbol::BNC), - _, - )) => false, - // ZLK transfer Call::Currencies(orml_currencies::Call::transfer( _, @@ -231,8 +208,6 @@ impl Contains for CallFilter { _, )) => false, - Call::Balances(_) => false, - Call::Vesting(_) => false, Call::PhragmenElection(_) => false, _ => true, } @@ -253,7 +228,11 @@ parameter_types! { } pub fn get_all_pallet_accounts() -> Vec { - vec![TreasuryPalletId::get().into_account(), BifrostCrowdloanId::get().into_account()] + vec![ + TreasuryPalletId::get().into_account(), + BifrostCrowdloanId::get().into_account(), + LiquidityMiningPalletId::get().into_account(), + ] } impl frame_system::Config for Runtime {