UNPKG

@unruggable/gateways

Version:

Trustless Ethereum Multichain CCIP-Read Gateway

8 lines (7 loc) 277 B
import { ABI_CODER, NULL_CODE_HASH } from '../utils.mjs'; export function isContract(proof) { return (proof.codeHash !== NULL_CODE_HASH && proof.keccakCodeHash !== NULL_CODE_HASH); } export function encodeProof(proof) { return ABI_CODER.encode(['bytes[]'], [proof]); }