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