Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhodl committed Dec 3, 2024
1 parent 0895321 commit bd26712
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/contracts-bedrock/test/L2/L2Genesis.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ contract L2GenesisTest is Test {

/// @notice Tests the number of accounts in the genesis setup
function _test_allocs_size(string memory _path) internal {
vm.mockCall(address(genesis.cfg()), abi.encodeCall(genesis.cfg().useSoulGasToken, ()), abi.encode(true));
vm.mockCall(address(genesis.cfg()), abi.encodeCall(genesis.cfg().isSoulBackedByNative, ()), abi.encode(true));

genesis.cfg().setFundDevAccounts(false);
genesis.runWithLatestLocal(_dummyL1Deps());
genesis.writeGenesisAllocs(_path);
Expand All @@ -183,6 +186,8 @@ contract L2GenesisTest is Test {
expected += 256; // precompiles
// setPreinstalls function in SetPreinstalls.s.sol sets 15 preinstalls
expected += 15; // preinstalls
expected += 1; // 4788 deployer account

// 16 prefunded dev accounts are excluded
assertEq(expected, getJSONKeyCount(_path), "key count check");

Expand Down

0 comments on commit bd26712

Please sign in to comment.