Skip to main content
Module

x/capi/scale_info/overrides/ChainError.ts

[WIP] A framework for crafting interactions with Substrate chains
Latest
File
export class ChainError<T> extends Error { override readonly name = "ChainError" constructor(public value: T) { super() this.stack = "ChainError: see error.value\n [error occurred on chain]" }
static toArgs = <T>(x: ChainError<T>): [T] => [x.value]}