1 | // Copyright 2017-2022 @polkadot/api authors & contributors
|
2 | // SPDX-License-Identifier: Apache-2.0
|
3 | import { u8aToU8a } from '@polkadot/util';
|
4 | export function findCall(registry, callIndex) {
|
5 | return registry.findMetaCall(u8aToU8a(callIndex));
|
6 | }
|
7 | export function findError(registry, errorIndex) {
|
8 | return registry.findMetaError(u8aToU8a(errorIndex));
|
9 | } |
\ | No newline at end of file |