Skip to content

Commit

Permalink
Fix decode bytes32
Browse files Browse the repository at this point in the history
- It was changed due to ethereum/eth-abi@82c1ad3
  • Loading branch information
Uxio0 committed Mar 5, 2024
1 parent 1e5d63a commit 4eee07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnosis/eth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_eth_address_with_invalid_checksum() -> str:
def decode_string_or_bytes32(data: bytes) -> str:
try:
return eth_abi.decode(["string"], data)[0]
except OverflowError:
except (OverflowError, eth_abi.exceptions.DecodingError):
name = eth_abi.decode(["bytes32"], data)[0]
end_position = name.find(b"\x00")
if end_position == -1:
Expand Down

0 comments on commit 4eee07e

Please sign in to comment.