mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
fix triggered by a 'contract creation -> revert -> creation of same contract' in the same transaction
This commit is contained in:
parent
159bbcd831
commit
2b003dc9a6
1 changed files with 3 additions and 0 deletions
|
|
@ -111,6 +111,9 @@ func (c *idxAccessListBuilder) codeChange(address common.Address, prev, cur []by
|
|||
c.prestates[address] = &accountIdxPrestate{}
|
||||
}
|
||||
if c.prestates[address].code == nil {
|
||||
if prev == nil {
|
||||
prev = []byte{}
|
||||
}
|
||||
c.prestates[address].code = prev
|
||||
}
|
||||
if _, ok := c.accessesStack[len(c.accessesStack)-1][address]; !ok {
|
||||
|
|
|
|||
Loading…
Reference in a new issue