diff --git a/core/types/account.go b/core/types/account.go index bcfb83418c..831e09d43a 100644 --- a/core/types/account.go +++ b/core/types/account.go @@ -75,7 +75,7 @@ func (ga *GenesisAlloc) UnmarshalJSON(data []byte) error { if err := json.Unmarshal(data, &m); err != nil { return err } - *ga = make(GenesisAlloc) + *ga = make(GenesisAlloc, len(m)) for addr, a := range m { (*ga)[common.Address(addr)] = a }