From d6c087632db3ebc91477ba8038f15142ee63ba2c Mon Sep 17 00:00:00 2001 From: n3wbie Date: Tue, 12 Sep 2023 17:50:32 +0900 Subject: [PATCH] fix: copy value in `cv.map` --- gnovm/pkg/gnolang/realm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gnovm/pkg/gnolang/realm.go b/gnovm/pkg/gnolang/realm.go index 567aea58284..6514cfc4b51 100644 --- a/gnovm/pkg/gnolang/realm.go +++ b/gnovm/pkg/gnolang/realm.go @@ -1349,6 +1349,7 @@ func fillTypesOfValue(store Store, val Value) Value { for cur := cv.List.Head; cur != nil; cur = cur.Next { fillTypesTV(store, &cur.Key) fillTypesTV(store, &cur.Value) + cv.vmap[cur.Key.ComputeMapKey(store, false)] = cur } return cv case TypeValue: