patractlabs / redspot

Redspot is an Substrate pallet-contracts (ink!) development environment. Compile your contracts and run them on a different networks. Redspot's core forks from Hardhat but changed a lot to suit substrate.
https://redspot.patract.io/
Other
67 stars 22 forks source link

Redspot fails to create error types #155

Open VargSupercolony opened 2 years ago

VargSupercolony commented 2 years ago

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 commented 2 years ago

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