UNPKG

@polkadot/api

Version:

Promise and RxJS wrappers around the Polkadot JS RPC

8 lines (7 loc) 257 B
import { u8aToU8a } from '@polkadot/util'; export function findCall(registry, callIndex) { return registry.findMetaCall(u8aToU8a(callIndex)); } export function findError(registry, errorIndex) { return registry.findMetaError(u8aToU8a(errorIndex)); }