Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redspot fails to create error types #155

Open
VargSupercolony opened this issue Nov 8, 2021 · 1 comment
Open

Redspot fails to create error types #155

VargSupercolony opened this issue Nov 8, 2021 · 1 comment

Comments

@VargSupercolony
Copy link
Contributor

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

@WookashWackomy
Copy link

Damn, it makes writing integration tests quite difficult....Any update on that? Is there a way to help with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants