Overview
Item.isFallback checks whether an ABI item represents a fallback function.
Type guard for fallback ABI items
Item.isFallback checks whether an ABI item represents a fallback function.
import { Abi } from '@tevm/voltaire/Abi';
const item = { type: 'fallback', stateMutability: 'payable' } as const;
if (Abi.Item.isFallback(item)) {
// Handle fallback definition
}
Was this page helpful?
Suggestions