Skip to content

Commit 24335d0

Browse files
committed
Fix for geth-etc (official geth is fine), which returns Receipts before the blockHash is synced to the database.
1 parent 908c2c1 commit 24335d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src.ts/providers/base-provider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,9 @@ export class BaseProvider extends Provider {
980980
return undefined;
981981
}
982982

983+
// "geth-etc" returns receipts before they are ready
984+
if (result.blockHash == null) { return undefined; }
985+
983986
return checkTransactionReceipt(result);
984987
});
985988
}, { onceBlock: this });

0 commit comments

Comments
 (0)