From e9245ca771ddb0295606d3464bf71edaf9e0b6c3 Mon Sep 17 00:00:00 2001 From: Edwin Wang Date: Thu, 14 Oct 2021 11:14:43 +0800 Subject: [PATCH] Clear runtime upgrade codes --- pallets/vesting/src/lib.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pallets/vesting/src/lib.rs b/pallets/vesting/src/lib.rs index 36078b9186..5bfa3589b9 100644 --- a/pallets/vesting/src/lib.rs +++ b/pallets/vesting/src/lib.rs @@ -210,17 +210,7 @@ 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 - } - } - } + impl Hooks> for Pallet {} #[pallet::call] impl Pallet {