Skip to content

Commit a9f940f

Browse files
authored
fix empty status issue
1 parent d7a6f2e commit a9f940f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/ethers_helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function getRawLogsFromBlockReceipts(ethersProvider: providers.JsonRpcProv
1818
continue
1919

2020
const txRawLogs = []
21-
const txRawReceipt = [receipt.status, receipt.cumulativeGasUsed, receipt.logsBloom]
21+
const txRawReceipt = [receipt.status == '0x0' ? '' : receipt.status, receipt.cumulativeGasUsed, receipt.logsBloom]
2222

2323
const logs = receipt.logs
2424
for (const log of logs)

0 commit comments

Comments
 (0)