Skip to main content

Type Alias: ContractConstructorArgs<abi>

type ContractConstructorArgs<abi>: AbiParametersToPrimitiveTypes<Extract<abi extends Abi ? abi : Abi[number], object>["inputs"], "inputs"> extends infer args ? [args] extends [never] ? readonly unknown[] : args : readonly unknown[];

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

Defined

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