@grainlify/contracts-sdk / parseContractErrorByCode
parseContractErrorByCode(
numericCode,contract):ContractError
Defined in: src/errors.ts:268
Resolve a numeric on-chain error code to a typed ContractError.
number
The u32 error discriminant from the contract.
"program_escrow" | "bounty_escrow" | "governance" | "circuit_breaker"
Which contract produced the error — determines the look-up table.