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

Commit 22a190c

Browse files
authored
Merge pull request #2557 from ethereum/issue/2551
DeployTransactionResponse renamed to ContractSendMethod
2 parents 0cb5562 + 557854a commit 22a190c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/web3-eth-contract/types/index.d.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class Contract {
3333

3434
clone(): Contract;
3535

36-
deploy(options: DeployOptions): DeployTransactionResponse;
36+
deploy(options: DeployOptions): ContractSendMethod;
3737

3838
methods: any;
3939

@@ -64,9 +64,7 @@ export interface DeployOptions {
6464
arguments?: any[];
6565
}
6666

67-
export interface DeployTransactionResponse {
68-
array: any[];
69-
67+
export interface ContractSendMethod {
7068
send(options: SendOptions, callback?: (err: Error, contracts: Contract) => void): PromiEvent<Contract>;
7169

7270
estimateGas(options: EstimateGasOptions, callback?: (err: Error, gas: number) => void): Promise<number>;

packages/web3-eth-contract/types/tests/contract-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const contract = new Contract('http://localhost:500', {type: 'constructor'});
2424
// $ExpectType Contract
2525
contract.clone();
2626

27-
// $ExpectType DeployTransactionResponse
27+
// $ExpectType ContractSendMethod
2828
contract.deploy({
2929
data: '0x12345...',
3030
arguments: [123, 'My String']

0 commit comments

Comments
 (0)