Skip to content

Commit

Permalink
fix: replace deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjscksdn98 committed Nov 13, 2024
1 parent a0aa1e0 commit 63ca760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/bfc-staking/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub mod v5 {
fn on_runtime_upgrade() -> Weight {
let mut weight = Weight::zero();

let current = Pallet::<T>::current_storage_version();
let current = Pallet::<T>::in_code_storage_version();
let onchain = Pallet::<T>::on_chain_storage_version();

if current == 5 && onchain == 4 {
Expand Down

0 comments on commit 63ca760

Please sign in to comment.