Skip to content

Commit

Permalink
refactor(genesis): small refactor (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Nov 5, 2024
1 parent f2f1001 commit d9c07ea
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions crates/genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,10 @@ impl Genesis {
};

// fund account
let mut alloc = BTreeMap::default();
alloc.insert(
let alloc = BTreeMap::from([(
signer_addr,
GenesisAccount {
balance: U256::MAX,
nonce: None,
code: None,
storage: None,
private_key: None,
},
);
GenesisAccount { balance: U256::MAX, ..Default::default() },
)]);

// put signer address in the extra data, padded by the required amount of zeros
// Clique issue: https://github.com/ethereum/EIPs/issues/225
Expand Down

0 comments on commit d9c07ea

Please sign in to comment.