10000 `sto_from_json` should not accept invalid value type for valid field · Issue #458 · Xahau/xahaud · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
sto_from_json should not accept invalid value type for valid field #458
Open
@tequdev

Description

@tequdev

Issue Description

The Native Amount field of the Amount type is represented as a string in the json format, but numbers are also handled as a valid format.

Steps to Reproduce

const Hook = () =>{
  trace("data", sto_from_json({ Balance: 123 }), false)
  accept("", 0)
}

Expected Result

-7 (INVALID_ARGUMENT)

Actual Result

[98,64,0,0,0,0,0,0,123]

Environment

Supporting Files

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0