Skip to content

Commit

Permalink
safe math
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Oct 31, 2024
1 parent 2b4f4d8 commit b3281f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/laos/src/migrations/vesting_migration_6s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ impl OnRuntimeUpgrade for VestingMigrationTo6SecBlockTime {
);
}

weight +
weight.saturating_add(
<Runtime as frame_system::Config>::DbWeight::get()
.reads_writes(read_count, write_count)
.reads_writes(read_count, write_count),
)
}

#[cfg(feature = "try-runtime")]
Expand Down

0 comments on commit b3281f1

Please sign in to comment.