From 2879095a6c4b097bfb747960f329e39f7e3dabe2 Mon Sep 17 00:00:00 2001 From: Petr Hanzl Date: Tue, 9 Apr 2024 13:20:13 +0200 Subject: [PATCH] Fix incorrect slice assignment --- updateset/update_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updateset/update_set.go b/updateset/update_set.go index 775cd80..ca664f5 100644 --- a/updateset/update_set.go +++ b/updateset/update_set.go @@ -66,7 +66,7 @@ func (up UpdateSetRLP) ToWorldState(getCodeFunc func(codeHash types.Hash) ([]byt } for j := range worldStateAcc.Storage { - acc.Storage[up.WorldState.Accounts[j].Storage[j][0]] = up.WorldState.Accounts[j].Storage[j][1] + acc.Storage[worldStateAcc.Storage[j][0]] = worldStateAcc.Storage[j][1] } worldState[addr] = &acc }