mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
Fix the undeterministic storage proof recorded for the same execution (#10915)
* Add a test case for the determinism of recorded proof * Replace HashMap with BTreeMap for the actual proof records * cargo +nightly fmt --all * Store the trie nodes in BTreeSet for StorageProof * Nit * Revert the BTreeMap changes and sort when converting to storage proof * Remove PartialEq from StorageProof * Remove unnecessary change * Add `compare` method to StorageProof * FMT * Dummy change to trigger CI * Use `BTreeSet` for StorageProof and keep using `Vec` for CompactProof * Update comment on `iter_nodes` * Revert `PartialEq` removal
This commit is contained in:
@@ -462,8 +462,9 @@ impl RuntimeSpawn for RuntimeInstanceSpawn {
|
||||
// https://github.com/paritytech/substrate/issues/7354
|
||||
let mut instance = match module.new_instance() {
|
||||
Ok(instance) => instance,
|
||||
Err(error) =>
|
||||
panic!("failed to create new instance from module: {}", error),
|
||||
Err(error) => {
|
||||
panic!("failed to create new instance from module: {}", error)
|
||||
},
|
||||
};
|
||||
|
||||
match instance
|
||||
|
||||
Reference in New Issue
Block a user