Skip to content

Commit

Permalink
fix: not use FieldTypeList use Type instead
Browse files Browse the repository at this point in the history
  • Loading branch information
omarsy committed May 7, 2024
1 parent 5fbd287 commit 0323970
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gnovm/pkg/gnolang/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -1541,10 +1541,9 @@ func (tv *TypedValue) ComputeMapKey(store Store, omitType bool) MapKey {
sv := tv.V.(*StructValue)
sl := len(sv.Fields)
bz = append(bz, '{')
bzl := FieldTypeList(bt.Fields).Types()
for i := 0; i < sl; i++ {
fv := fillValueTV(store, &sv.Fields[i])
omitTypes := bzl[i].Kind() != InterfaceKind
omitTypes := bt.Fields[i].Type.Kind() != InterfaceKind
bz = append(bz, fv.ComputeMapKey(store, omitTypes)...)
if i != sl-1 {
bz = append(bz, ',')
Expand Down

0 comments on commit 0323970

Please sign in to comment.