surf icon indicating copy to clipboard operation
surf copied to clipboard

OrderedMap not supported

Open banool opened this issue 6 months ago • 0 comments

I have a view function like this:

public fun get_canvas(game_address: address, round_number: u64, team: u64): OrderedMap<u16, Color>

When I use the ABI for this module with Surf:

      {
        "name": "get_canvas",
        "visibility": "public",
        "is_entry": false,
        "is_view": true,
        "generic_type_params": [],
        "params": [
          "address",
          "u64",
          "u64"
        ],
        "return": [
          "0x1::ordered_map::OrderedMap<u16, 0x6038c25eb61cf10831f50b3ba11006e3fef8a0cac0de6eeb4b57cdccfbec344f::pictionary::Color>"
        ]
      }

The view function just returns [unknown]. I suppose the framework ABI bundled with the package needs to be updated.

banool avatar Aug 01 '25 11:08 banool