feat(op): init genesis alloc (#7748)

This commit is contained in:
Emilia Hane
2024-04-20 12:55:36 +02:00
committed by GitHub
parent 6728a5518a
commit e35abf8423
4 changed files with 37 additions and 35 deletions

View File

@ -207,9 +207,8 @@ mod tests {
let genesis = chain_spec.genesis();
let alloc_accounts = genesis
.alloc
.clone()
.into_iter()
.map(|(addr, account)| (addr, Some(Account::from_genesis_account(account))));
.iter()
.map(|(addr, account)| (*addr, Some(Account::from_genesis_account(account))));
provider.insert_account_for_hashing(alloc_accounts).unwrap();
let alloc_storage = genesis.alloc.clone().into_iter().filter_map(|(addr, account)| {