Add types for getData on a web3 contract
This commit is contained in:
1
packages/web3-typescript-typings/index.d.ts
vendored
1
packages/web3-typescript-typings/index.d.ts
vendored
@@ -107,6 +107,7 @@ declare module 'web3' {
|
|||||||
|
|
||||||
interface Contract<A extends ContractInstance> {
|
interface Contract<A extends ContractInstance> {
|
||||||
at(address: string): A;
|
at(address: string): A;
|
||||||
|
getData(...args: any[]): string;
|
||||||
'new'(...args: any[]): A;
|
'new'(...args: any[]): A;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user