Fix erroneous incarnation for accounts created and called in the same block (e.g. 0x2c785fa15498fe27f1fc5f809bcd9c10c9481752) (#389)

This commit is contained in:
Andrew Ashikhmin 2020-03-12 16:22:23 +01:00 committed by GitHub
parent aeed1657c7
commit 2866bc5448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -862,6 +862,7 @@ func updateAccount(ctx context.Context, stateWriter StateWriter, addr common.Add
if err := stateWriter.CreateContract(addr); err != nil { if err := stateWriter.CreateContract(addr); err != nil {
return err return err
} }
stateObject.created = false
} }
} }
return nil return nil