Skip to content

Commit

Permalink
Catch errors for evaluting transfer value
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Rudnik committed Mar 30, 2022
1 parent 6acf920 commit a4a6978
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ethtx/decoders/abi/transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def _transfers_calls(decoded_call):
) = self._repository.get_token_data(
event.chain_id, event.contract.address, proxies
)
value = event.parameters[2].value / 10**token_decimals
try:
value = event.parameters[2].value / 10**token_decimals
except:
value = 0

transfers.append(
DecodedTransfer(
Expand Down

0 comments on commit a4a6978

Please sign in to comment.