Skip to content

Commit

Permalink
fix status check
Browse files Browse the repository at this point in the history
  • Loading branch information
blindchaser committed Nov 21, 2024
1 parent 04ec764 commit 711c345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evmrpc/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (t *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common.
return nil, err
}
// Fill in the receipt if the transaction has failed and used 0 gas
if receipt.TxType == 0 && receipt.GasUsed == 0 {
if receipt.Status == 0 && receipt.GasUsed == 0 {
// Get the block
height := int64(receipt.BlockNumber)
block, err := blockByNumberWithRetry(ctx, t.tmClient, &height, 1)
Expand Down

0 comments on commit 711c345

Please sign in to comment.