Fix for geth-etc (official geth is fine), which returns Receipts before the blockHash is synced to the database.

This commit is contained in:
Richard Moore 2018-10-04 16:46:19 -04:00
parent 908c2c1096
commit 24335d0dd7
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -980,6 +980,9 @@ export class BaseProvider extends Provider {
return undefined; return undefined;
} }
// "geth-etc" returns receipts before they are ready
if (result.blockHash == null) { return undefined; }
return checkTransactionReceipt(result); return checkTransactionReceipt(result);
}); });
}, { onceBlock: this }); }, { onceBlock: this });