Also make sure the transactionReceipt contains a blockNumber when checking if a transaction has been mined.
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"version": "2.0.3",
|
||||
"changes": [
|
||||
{
|
||||
"note":
|
||||
"Fixes issue #1076 where Parity now returns a placeholder transactionReceipt before the transaction is mined."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1536142250,
|
||||
"version": "2.0.2",
|
||||
|
@@ -539,7 +539,7 @@ export class Web3Wrapper {
|
||||
}
|
||||
// Immediately check if the transaction has already been mined.
|
||||
let transactionReceipt = await this.getTransactionReceiptAsync(txHash);
|
||||
if (!_.isNull(transactionReceipt)) {
|
||||
if (!_.isNull(transactionReceipt) && !_.isNull(transactionReceipt.blockNumber)) {
|
||||
const logsWithDecodedArgs = _.map(
|
||||
transactionReceipt.logs,
|
||||
this.abiDecoder.tryToDecodeLogOrNoop.bind(this.abiDecoder),
|
||||
|
Reference in New Issue
Block a user