Skip to content
This repository has been archived by the owner on Mar 5, 2025. It is now read-only.

Contract call with tuple is missing param names #5613

Merged
merged 14 commits into from
Nov 30, 2022
11 changes: 9 additions & 2 deletions packages/web3-eth-contract/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ export interface NonPayableMethodObject<Inputs = unknown[], Outputs = unknown[]>
* @param block - If you pass this parameter it will not use the default block set with contract.defaultBlock. Pre-defined block numbers as `earliest`, `latest`, and `pending` can also be used. Useful for requesting data from or replaying transactions in past blocks.
* @returns - The return value(s) of the smart contract method. If it returns a single value, it’s returned as is. If it has multiple return values they are returned as an object with properties and indices.
*/
call(tx?: NonPayableCallOptions, block?: BlockNumberOrTag): Promise<Outputs>;

call<SpecialOutput = Outputs>(
tx?: NonPayableCallOptions,
block?: BlockNumberOrTag,
): Promise<SpecialOutput>;

/**
* This will send a transaction to the smart contract and execute its method. Note this can alter the smart contract state.
Expand Down Expand Up @@ -384,7 +388,10 @@ export interface PayableMethodObject<Inputs = unknown[], Outputs = unknown[]> {
* @param block - If you pass this parameter it will not use the default block set with contract.defaultBlock. Pre-defined block numbers as `earliest`, `latest`, and `pending` can also be used. Useful for requesting data from or replaying transactions in past blocks.
* @returns - The return value(s) of the smart contract method. If it returns a single value, it’s returned as is. If it has multiple return values they are returned as an object with properties and indices.
*/
call(tx?: PayableCallOptions, block?: BlockNumberOrTag): Promise<Outputs>;
call<SpecialOutput = Outputs>(
tx?: PayableCallOptions,
block?: BlockNumberOrTag,
): Promise<SpecialOutput>;

/**
* Will send a transaction to the smart contract and execute its method. Note this can alter the smart contract state.
Expand Down