Skip to content

Doesn't support string type parameter for methodArgs #1

@youtpout

Description

@youtpout

Hello,
when i pass string type parameter to smartcontract I have an error
Error: dynamic string conversion not implemented.
at contract.js:36
at Generator.next ()
at asyncGeneratorStep (asyncToGenerator.js:3)
at _next (asyncToGenerator.js:25)
at asyncToGenerator.js:32
at new ZoneAwarePromise (zone.js:1387)
at asyncToGenerator.js:21
at Contract.call (contract.js:28)
at creator.service.ts:72
at Generator.next ()

I see this code in your Encoder.js

if (type === Constants.BYTES) { throw Error('dynamics bytes conversion not implemented.'); } else if (type === Constants.STRING) { throw Error('dynamic string conversion not implemented.'); } else if (type.match(Constants.REGEX_DYNAMIC_ARRAY)) { // dynamic types let data = '';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions