Skip to content

Commit

Permalink
fix: map copy
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Feb 13, 2024
1 parent fdbf927 commit 36ef3bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnovm/pkg/gnolang/realm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 1360 in gnovm/pkg/gnolang/realm.go

View check run for this annotation

Codecov / codecov/patch

gnovm/pkg/gnolang/realm.go#L1359-L1360

Added lines #L1359 - L1360 were not covered by tests
}
return cv
case TypeValue:
Expand Down

0 comments on commit 36ef3bb

Please sign in to comment.