@gnolang/tm2-js-client
Version:
Tendermint2 JS / TS Client
12 lines (11 loc) • 494 B
TypeScript
import { TM2Error } from '../errors';
/**
* Constructs the appropriate Tendermint2
* error based on the error ID.
* Error IDs retrieved from:
* https://github.com/gnolang/gno/blob/64f0fd0fa44021a076e1453b1767fbc914ed3b66/tm2/pkg/std/package.go#L20C1-L38
* @param {string} errorID the proto ID of the error
* @param {string} [log] the log associated with the error, if any
* @returns {TM2Error}
*/
export declare const constructRequestError: (errorID: string, log?: string) => TM2Error;