aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 18:57:52 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:36 +0800
commitae37f8d9b68ae6e54f63bbbba7cc13e77a0d537f (patch)
tree9d4a6c1bde3ce074a058254eb31fdabaf2e78e59
parent6a8113af1d7c964bea993c36f381908ae4a881ed (diff)
downloaddexon-sol-tools-ae37f8d9b68ae6e54f63bbbba7cc13e77a0d537f.tar.gz
dexon-sol-tools-ae37f8d9b68ae6e54f63bbbba7cc13e77a0d537f.tar.zst
dexon-sol-tools-ae37f8d9b68ae6e54f63bbbba7cc13e77a0d537f.zip
Define sendAsync on HttpProvider
-rw-r--r--packages/web3-typescript-typings/index.d.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index 7e13b4793..2fc6f277c 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -36,6 +36,10 @@ declare module 'web3' {
namespace providers {
class HttpProvider implements Web3.Provider {
constructor(url?: string, timeout?: number, username?: string, password?: string);
+ public sendAsync(
+ payload: Web3.JSONRPCRequestPayload,
+ callback: (err: Error, result: Web3.JSONRPCResponsePayload) => void,
+ ): void;
}
}