diff --git a/packages/web3-core-method/src/observers/TransactionObserver.js b/packages/web3-core-method/src/observers/TransactionObserver.js index a99cb89b5ca..fc46ade3e0f 100644 --- a/packages/web3-core-method/src/observers/TransactionObserver.js +++ b/packages/web3-core-method/src/observers/TransactionObserver.js @@ -14,6 +14,7 @@ /** * @file TransactionObserver.js * @author Samuel Furter + * @author Josh Stevens * @date 2019 */ @@ -147,8 +148,10 @@ export default class TransactionObserver { this.getTransactionReceiptMethod.parameters = [transactionHash]; const receipt = await this.getTransactionReceiptMethod.execute(); - - if (receipt) { + + // on parity nodes you can get the receipt without it being mined + // so the receipt may not have a block number at this point + if (receipt && receipt.blockNumber) { if (this.lastBlock) { const block = await this.getBlockByNumber(this.lastBlock.number + 1);