Skip to content

Asset class exported type lacks an argument #717

@fazzatti

Description

@fazzatti

What:
When using js-stellar-base and js-stellar-sdk to manage assets, the method contractId() always returns an error.

Why
By looking at the source code, we can see the method expects an argument that is not present in the exported type.

Forcing typescript to ignore the error and providing the network passphrase as an argument overcomes the issue. It is necessary to update the type to reflect the need for an argument.

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