UNPKG

@polkadot/api

Version:

Promise and RxJS wrappers around the Polkadot JS RPC

13 lines (12 loc) 450 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findError = exports.findCall = void 0; const util_1 = require("@polkadot/util"); function findCall(registry, callIndex) { return registry.findMetaCall((0, util_1.u8aToU8a)(callIndex)); } exports.findCall = findCall; function findError(registry, errorIndex) { return registry.findMetaError((0, util_1.u8aToU8a)(errorIndex)); } exports.findError = findError;