Type guard for receive ABI items
Item.isReceive
import { Abi } from '@tevm/voltaire/Abi'; const item = { type: 'receive', stateMutability: 'payable' } as const; if (Abi.Item.isReceive(item)) { // Handle receive definition }
Was this page helpful?