UNPKG

450 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.findError = exports.findCall = void 0;
4const util_1 = require("@polkadot/util");
5function findCall(registry, callIndex) {
6 return registry.findMetaCall((0, util_1.u8aToU8a)(callIndex));
7}
8exports.findCall = findCall;
9function findError(registry, errorIndex) {
10 return registry.findMetaError((0, util_1.u8aToU8a)(errorIndex));
11}
12exports.findError = findError;