Skip to content

Latest commit

 

History

History
71 lines (60 loc) · 978 Bytes

neo-go-3613.md

File metadata and controls

71 lines (60 loc) · 978 Bytes

PACKMAP operation keeps duplicate entries

Minimal case

ERERERK+

What is wrong

PACKMAP operations keeps duplicate keys (and entries).

[
  {
    "type": "Map",
    "value": [
      {
        "key": {
          "type": "Integer",
          "value": "1"
        },
        "value": {
          "type": "Integer",
          "value": "1"
        }
      },
      {
        "key": {
          "type": "Integer",
          "value": "1"
        },
        "value": {
          "type": "Integer",
          "value": "1"
        }
      }
    ]
  }
]

image

Expected behavior

C# (neo) results:

[
  {
    "type": "Map",
    "value": [
      {
        "key": {
          "type": "Integer",
          "value": "1"
        },
        "value": {
          "type": "Integer",
          "value": "1"
        }
      }
    ]
  }
]

Extra info

Relevant for Commit (neo-go): a9242535db757faba860e21c194033f30c679f48