Skip to content

Redspot fails to create error types #155

Description

@VargSupercolony

v0.13.1

Hey guys, I've encountered some issues when refactoring the code from -> () return types to -> Result<(), Error> return types. For some reason, Redspot cannot construct the error types, while they are definitely present in the ABI.

This is the example (which is generated by npx redspot-new command). I've removed some irrelevant stuff from there, only left one test in erc20.tests.ts. Please see the repository and try to run the test yourself (yarn build && yarn test). The contract is unchanged.

This works in polkadot js apps

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions