git.delta.rocks / unique-network / refs/commits / ab96e01ade90

difftreelog

Weights updated

str-mv2020-11-25parent: #eaea941.patch.diff
in: master

2 files changed

modifiedpallets/nft/src/default_weights.rsdiffbeforeafterboth
63 } 63 }
64 fn create_item(s: usize, ) -> Weight {64 fn create_item(s: usize, ) -> Weight {
65 (130_000_000 as Weight)65 (130_000_000 as Weight)
66 .saturating_add((2135 as Weight).saturating_mul(s as Weight))66 .saturating_add((2135 as Weight).saturating_mul(s as Weight).saturating_mul(500 as Weight)) // 500 is temporary multiplier, fee for storage
67 .saturating_add(DbWeight::get().reads(10 as Weight))67 .saturating_add(DbWeight::get().reads(10 as Weight))
68 .saturating_add(DbWeight::get().writes(8 as Weight))68 .saturating_add(DbWeight::get().writes(8 as Weight))
69 } 69 }
modifiedruntime/src/nft_weights.rsdiffbeforeafterboth
--- a/runtime/src/nft_weights.rs
+++ b/runtime/src/nft_weights.rs
@@ -64,7 +64,7 @@
     }  
     fn create_item(s: usize, ) -> Weight {
         (130_000_000 as Weight)
-            .saturating_add((2135 as Weight).saturating_mul(s as Weight))
+            .saturating_add((2135 as Weight).saturating_mul(s as Weight).saturating_mul(500 as Weight)) // 500 is temparary multiplier, fee for storage
             .saturating_add(DbWeight::get().reads(10 as Weight))
             .saturating_add(DbWeight::get().writes(8 as Weight))
     }