Skip to main content

Type Alias: ContractErrorArgs<abi, errorName>

type ContractErrorArgs<abi, errorName>: AbiParametersToPrimitiveTypes<ExtractAbiError<abi extends Abi ? abi : Abi, errorName>["inputs"], "inputs"> extends infer args ? [args] extends [never] ? readonly unknown[] : args : readonly unknown[];

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

errorName extends ContractErrorName<abi>

ContractErrorName<abi>

Defined

@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:96