We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac5546 commit d0ce408Copy full SHA for d0ce408
.changeset/rude-parents-share.md
@@ -0,0 +1,5 @@
1
+---
2
+"@ethereum-waffle/provider": patch
3
4
+
5
+Append revert string check transaction receipt is not null
waffle-provider/src/revertString.ts
@@ -61,7 +61,7 @@ export const decodeRevertString = (callRevertError: any): string => {
61
};
62
63
export const appendRevertString = async (etherProvider: providers.Web3Provider, receipt: any) => {
64
- if (parseInt(receipt.status) === 0) {
+ if (receipt && parseInt(receipt.status) === 0) {
65
log('Got transaction receipt of a failed transaction. Attempting to replay to obtain revert string.');
66
try {
67
const tx = await etherProvider.getTransaction(receipt.transactionHash);
0 commit comments