Skip to content

Commit 9efce2e

Browse files
committed
Fix build: use Default::default() for FxHashMap type alias
TransientStorage is a type alias for FxHashMap which uses FxBuildHasher, so HashMap::new() (which requires RandomState) doesn't compile. Use default() which works with any hasher.
1 parent a84c7df commit 9efce2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/vm/levm/src/vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Substate {
9595
accessed_storage_slots,
9696
created_accounts: FxHashSet::default(),
9797
refunded_gas: 0,
98-
transient_storage: TransientStorage::new(),
98+
transient_storage: TransientStorage::default(),
9999
logs: Vec::new(),
100100
}
101101
}

0 commit comments

Comments
 (0)