fix double-allocation

This commit is contained in:
Sina Mahmoodi 2023-11-24 12:35:20 +03:30
parent 6b8d216578
commit b80aa1efb8

View file

@ -1382,7 +1382,6 @@ func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, d
// PrepareBlock prepares the statedb for execution of a block. It tracks
// the addresses of enabled precompiles for debugging purposes.
func (s *StateDB) PrepareBlock(precompiles []common.Address) {
s.precompiles = make(map[common.Address]struct{})
for _, addr := range precompiles {
s.precompiles[addr] = struct{}{}
}