From 97c228031a1780e40bb865ecc4906d58ee34ffa2 Mon Sep 17 00:00:00 2001 From: Olaf Tomalka Date: Tue, 23 Jan 2018 23:42:40 +0100 Subject: Fixed getTransactionReceipt not returning null --- packages/web3-typescript-typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index ff379cb3d..cd34759ed 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -257,10 +257,10 @@ declare module 'web3' { sign(address: string, data: string): string; sign(address: string, data: string, callback: (err: Error, signature: string) => void): void; - getTransactionReceipt(txHash: string): Web3.TransactionReceipt; + getTransactionReceipt(txHash: string): Web3.TransactionReceipt | null; getTransactionReceipt( txHash: string, - callback: (err: Error, receipt: Web3.TransactionReceipt) => void, + callback: (err: Error, receipt: Web3.TransactionReceipt | null) => void, ): void; // TODO block param -- cgit v1.2.3 From d227f2ad7ca5128332be7dbb671c5e443789d472 Mon Sep 17 00:00:00 2001 From: Olaf Tomalka Date: Thu, 25 Jan 2018 23:53:38 +0100 Subject: Updated web3-typescript-typings changelog --- packages/web3-typescript-typings/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web3-typescript-typings/CHANGELOG.md b/packages/web3-typescript-typings/CHANGELOG.md index 46f70d864..56bb4ed48 100644 --- a/packages/web3-typescript-typings/CHANGELOG.md +++ b/packages/web3-typescript-typings/CHANGELOG.md @@ -2,5 +2,6 @@ ## v0.9.3 - _January 11, 2018_ +* Fix `getTransactionReceipt` not returning null (#338) * Add type for getData on a contract * Fixed the `defaultAccount` not allowing for `undefined` value (#320) -- cgit v1.2.3