Fix for geth-etc (official geth is fine), which returns Receipts before the blockHash is synced to the database.
This commit is contained in:
parent
908c2c1096
commit
24335d0dd7
@ -980,6 +980,9 @@ export class BaseProvider extends Provider {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// "geth-etc" returns receipts before they are ready
|
||||
if (result.blockHash == null) { return undefined; }
|
||||
|
||||
return checkTransactionReceipt(result);
|
||||
});
|
||||
}, { onceBlock: this });
|
||||
|
Loading…
Reference in New Issue
Block a user