Skip to content

Commit

Permalink
chore: cleanup bugfix in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 19, 2024
1 parent d0245d7 commit d34bb6e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions eth_portfolio/_loaders/token_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ async def load_token_transfer(
)
else:
coro_results["transaction_index"] = await tx_index_coro

if coro_results["transaction_index"] is None:
raise TypeError(None, coro_results, transfer_log)

except Exception as e:
logger.error(
Expand Down Expand Up @@ -201,12 +198,9 @@ async def get_transaction_index(hash: str) -> int:
break
logger.info("get_transaction_index failed, retrying...")

i = msgspec.json.decode(
return msgspec.json.decode(
receipt_bytes, type=HasTxIndex, dec_hook=TransactionIndex._decode_hook
).transactionIndex
if i is None:
raise TypeError(i, msgspec.json.decode(receipt_bytes))
return i


class HasTxIndex(msgspec.Struct):
Expand Down

0 comments on commit d34bb6e

Please sign in to comment.