Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
blindchaser committed Nov 21, 2024
1 parent 0f8c944 commit 16fac14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions evmrpc/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +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
// This case is for when a tx fails before it makes it to the VM
if receipt.Status == 0 && receipt.GasUsed == 0 {
// Get the block
height := int64(receipt.BlockNumber)
Expand Down

0 comments on commit 16fac14

Please sign in to comment.