Skip to main content

Overview

Item.isFallback checks whether an ABI item represents a fallback function.

Example

import { Abi } from '@tevm/voltaire/Abi';

const item = { type: 'fallback', stateMutability: 'payable' } as const;

if (Abi.Item.isFallback(item)) {
  // Handle fallback definition
}

See Also