Skip to content

Commit

Permalink
bugfix for a corner case when get_transaction_receipt returns nil
Browse files Browse the repository at this point in the history
  • Loading branch information
ontofractal committed Feb 27, 2018
1 parent 085ddf9 commit 9924bf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/eth/transaction_queries.ex
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ defmodule ETH.TransactionQueries do

def get_transaction_receipt(transaction_hash) do
case HttpClient.eth_get_transaction_receipt(transaction_hash) do
{:ok, nil} -> {:error, nil}
{:ok, raw_transaction_receipt} ->
{:ok, convert_transaction_receipt(raw_transaction_receipt)}

Expand Down

0 comments on commit 9924bf0

Please # to comment.