1 | // Copyright 2017-2022 @polkadot/util authors & contributors
|
2 | // SPDX-License-Identifier: Apache-2.0
|
3 | import { isOnObject } from "./helpers.js";
|
4 | const checkCodec = isOnObject('toHex', 'toU8a');
|
5 | const checkRegistry = isOnObject('get');
|
6 | export function isCodec(value) {
|
7 | return checkCodec(value) && checkRegistry(value.registry);
|
8 | } |
\ | No newline at end of file |