neo-project / neo-debugger

Neo Smart Contract Debugger for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ngd-seattle.neo-contract-debug
MIT License
23 stars 17 forks source link

NDX-DN12 arg shortcuts not working from launch config #195

Closed ixje closed 10 months ago

ixje commented 1 year ago

Specifically this part of the args does not seem to work when used from the launch config

Additionally, direct encoded strings can use special prefixes to indicate other contract parameter types

Direct encoded strings with a '0x' prefix are treated as a hex encoded ByteArray Direct encoded strings with a '@A' prefix are treated as a base68 encoded Hash160 value (i.e. Neo wallet addresses) For Neo v3, the prefix will be '@N'

As discussed on Discord it is believed they should be working.

This

            "invocation": {
                "operation": "offlineMint",
                "args": [
                    {
                        "type": "ByteArray",
                        "value": "AQ=="
                    },
                    "@NNZJT17kCS3pSYgXnm24V8ynLVVwJJuSZTA"
                ]
            },

will just be parsed as a string (with prefix included) as can be seen in the screenshot image

My expectation was that I could use this as a shortcut for UInt160 types (a.k.a Hash160 contract param type)

ixje commented 10 months ago

this seems to have been resolved and working in v3.8.7