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.
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.
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 inerc20.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