From 36ef3bbdf9a9997ff5388d70f306936fee61fd56 Mon Sep 17 00:00:00 2001 From: n3wbie Date: Tue, 13 Feb 2024 17:09:40 +0900 Subject: [PATCH] fix: map copy --- gnovm/pkg/gnolang/realm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnovm/pkg/gnolang/realm.go b/gnovm/pkg/gnolang/realm.go index 519b183ad3a..a6c5d3d6cdb 100644 --- a/gnovm/pkg/gnolang/realm.go +++ b/gnovm/pkg/gnolang/realm.go @@ -1356,6 +1356,8 @@ 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: