While calling a read only method on my ink contract, I get an error that looks like following
On my contract, I have a check to throw an error like:
if paid <= MIN_VESTING_AMOUNT{
return Err(Error::VestingAmountTooLow);
}
However the error message that I have received on the client side doesn't exactly tell me what went wrong in the call. Instead it just gives a generic message ContractTrapped
on every error on the contract.
Is there a way to decode the actual error message?
Err(Error::VestingAmountTooLow)
, does it still sayCalleTrapped
?