contracts: Add test to verify unique trie ids (#10914)

* Add test to verify unique trie ids

* Rename trie_seed to nonce

* Rename AccountCounter -> Nonce

* fmt
This commit is contained in:
Alexander Theißen
2022-03-10 12:28:00 +01:00
committed by GitHub
parent 18aef02e87
commit bef9b79d7b
6 changed files with 162 additions and 56 deletions
+8 -8
View File
@@ -201,7 +201,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Contracts CodeStorage (r:1 w:1)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts ContractInfoOf (r:1 w:1)
// Storage: Timestamp Now (r:1 w:0)
// Storage: System Account (r:1 w:1)
@@ -217,7 +217,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}
// Storage: Contracts CodeStorage (r:1 w:1)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts ContractInfoOf (r:1 w:1)
// Storage: Timestamp Now (r:1 w:0)
// Storage: System Account (r:1 w:1)
@@ -651,7 +651,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Contracts ContractInfoOf (r:1 w:1)
// Storage: Contracts CodeStorage (r:1 w:0)
// Storage: Timestamp Now (r:1 w:0)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts OwnerInfoOf (r:100 w:100)
fn seal_instantiate(r: u32, ) -> Weight {
(0 as Weight)
@@ -666,7 +666,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Contracts ContractInfoOf (r:101 w:101)
// Storage: Contracts CodeStorage (r:2 w:1)
// Storage: Timestamp Now (r:1 w:0)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts OwnerInfoOf (r:1 w:1)
fn seal_instantiate_per_transfer_salt_kb(t: u32, s: u32, ) -> Weight {
(14_790_752_000 as Weight)
@@ -1092,7 +1092,7 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Contracts CodeStorage (r:1 w:1)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts ContractInfoOf (r:1 w:1)
// Storage: Timestamp Now (r:1 w:0)
// Storage: System Account (r:1 w:1)
@@ -1108,7 +1108,7 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
}
// Storage: Contracts CodeStorage (r:1 w:1)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts ContractInfoOf (r:1 w:1)
// Storage: Timestamp Now (r:1 w:0)
// Storage: System Account (r:1 w:1)
@@ -1542,7 +1542,7 @@ impl WeightInfo for () {
// Storage: Contracts ContractInfoOf (r:1 w:1)
// Storage: Contracts CodeStorage (r:1 w:0)
// Storage: Timestamp Now (r:1 w:0)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts OwnerInfoOf (r:100 w:100)
fn seal_instantiate(r: u32, ) -> Weight {
(0 as Weight)
@@ -1557,7 +1557,7 @@ impl WeightInfo for () {
// Storage: Contracts ContractInfoOf (r:101 w:101)
// Storage: Contracts CodeStorage (r:2 w:1)
// Storage: Timestamp Now (r:1 w:0)
// Storage: Contracts AccountCounter (r:1 w:1)
// Storage: Contracts Nonce (r:1 w:1)
// Storage: Contracts OwnerInfoOf (r:1 w:1)
fn seal_instantiate_per_transfer_salt_kb(t: u32, s: u32, ) -> Weight {
(14_790_752_000 as Weight)