mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
properly initialize bal copy in Copy
This commit is contained in:
parent
b3775601ac
commit
ef217e2169
1 changed files with 2 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ type slotWrites map[uint16]common.Hash
|
|||
|
||||
// Copy returns a deep copy of the access list.
|
||||
func (b *BlockAccessList) Copy() *BlockAccessList {
|
||||
res := new(BlockAccessList)
|
||||
res := NewBlockAccessList()
|
||||
for addr, aa := range b.accounts {
|
||||
var aaCopy accountAccess
|
||||
aaCopy.StorageWrites = aa.StorageWrites.copy()
|
||||
|
|
@ -182,7 +182,7 @@ func (b *BlockAccessList) Copy() *BlockAccessList {
|
|||
}
|
||||
res.accounts[addr] = &aaCopy
|
||||
}
|
||||
return res
|
||||
return &res
|
||||
}
|
||||
|
||||
func (e *encodingBlockAccessList) prettyPrint() string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue