From 2866bc5448c71bb920c7880b067cdba4dbc63e5c Mon Sep 17 00:00:00 2001 From: Andrew Ashikhmin <34320705+yperbasis@users.noreply.github.com> Date: Thu, 12 Mar 2020 16:22:23 +0100 Subject: [PATCH] Fix erroneous incarnation for accounts created and called in the same block (e.g. 0x2c785fa15498fe27f1fc5f809bcd9c10c9481752) (#389) --- core/state/intra_block_state.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/state/intra_block_state.go b/core/state/intra_block_state.go index 050a2d2a9..5aca270bc 100644 --- a/core/state/intra_block_state.go +++ b/core/state/intra_block_state.go @@ -862,6 +862,7 @@ func updateAccount(ctx context.Context, stateWriter StateWriter, addr common.Add if err := stateWriter.CreateContract(addr); err != nil { return err } + stateObject.created = false } } return nil