mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 10:31:03 +00:00
Weight v1.5 Follow Ups (#12155)
* update api * update * remove unused * remove `one` api * fix unused * fmt * add saturating accrue * remove `Weight::new()` * use some macros * div makes no sense * Update weight_v2.rs * missed some * more patch * fixes * more fixes * more fix * more fix * Update frame/support/src/weights/weight_v2.rs * not needed * fix weight file
This commit is contained in:
@@ -223,7 +223,7 @@ impl<T: Config> Token<T> for CodeToken {
|
||||
Load(len) => {
|
||||
let computation = T::WeightInfo::call_with_code_per_byte(len)
|
||||
.saturating_sub(T::WeightInfo::call_with_code_per_byte(0));
|
||||
let bandwidth = T::ContractAccessWeight::get().scalar_saturating_mul(len as u64);
|
||||
let bandwidth = T::ContractAccessWeight::get().saturating_mul(len as u64);
|
||||
computation.max(bandwidth)
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user