UNPKG

498 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.findCall = findCall;
7exports.findError = findError;
8
9var _util = require("@polkadot/util");
10
11// Copyright 2017-2022 @polkadot/api authors & contributors
12// SPDX-License-Identifier: Apache-2.0
13function findCall(registry, callIndex) {
14 return registry.findMetaCall((0, _util.u8aToU8a)(callIndex));
15}
16
17function findError(registry, errorIndex) {
18 return registry.findMetaError((0, _util.u8aToU8a)(errorIndex));
19}
\No newline at end of file