UNPKG

viem

Version:

TypeScript Interface for Ethereum

6 lines 318 B
import { toBytes } from '../encoding/toBytes.js'; import { getEventSignature } from './getEventSignature.js'; import { keccak256 } from './keccak256.js'; const hash = (value) => keccak256(toBytes(value)); export const getEventSelector = (fn) => hash(getEventSignature(fn)); //# sourceMappingURL=getEventSelector.js.map