Skip to content

Commit

Permalink
simulators/ethereum/engine: Add 1 wei to 4788 stateful precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz authored and fjl committed Aug 1, 2023
1 parent e702282 commit e8d8d79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions simulators/ethereum/engine/suites/blobs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ func (bs *BlobsBaseSpec) GetGenesis() *core.Genesis {
}
}

// Add 1 wei to the 4788 stateful precompile so its account is not deleted at the end of
// block execution.
genesis.Alloc[common.BigToAddress(new(big.Int).SetUint64(uint64(HISTORY_STORAGE_ADDRESS)))] = core.GenesisAccount{
Balance: big.NewInt(1),
}

return genesis
}

Expand Down

0 comments on commit e8d8d79

Please sign in to comment.