git.delta.rocks / unique-network / refs/commits / 38074f1999e5

difftreelog

Merge pull request #19 from usetech-llc/feature/nftpar-147

Greg Zaitsev2020-11-25parents: #eaea941 #ab96e01.patch.diff
in: master
Weights updated

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))
     }