Open
Description
Given a smart contract, say erc20,
When a contract developer wants to check a transaction returns any error, He could check if any promise rejection happened.
Expect that he could do as below:
import { Error } from artificats.erc20;
const contractFactory = await getContractFactory('erc20', creator);
const contract = await contractFactory.deploy('new', 100);
expect(() => await contract.transfer(signer.address))
.rejectWith(Error.InsufficientAllowance);
Dependencies
- Custom Type Support [feature request] Contract custom type definition generation support #81
- Result::Err of message emitted ExtrinsicFailed Implement error forwarding use-ink/ink#641
- detect Errors returned from blockchain [feature request?] redspot-chai - detect Errors returned from blockchain #78
Metadata
Assignees
Labels
No labels