Skip to content

Commit

Permalink
Merge pull request #1758 from BoostryJP/fix-decode-error
Browse files Browse the repository at this point in the history
Fix error_code decoding
  • Loading branch information
iamdefinitelyahuman authored May 4, 2024
2 parents 954bcdc + 2e383f0 commit 0620d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brownie/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def decode_typed_error(data: str) -> str:
selector = data[:10]
if selector == "0x4e487b71":
# special case, solidity compiler panics
error_code = int(data[4:].hex(), 16)
error_code = int(HexBytes(data[10:]).hex(), 16)
return SOLIDITY_ERROR_CODES.get(error_code, f"Unknown compiler Panic: {error_code}")
if selector in _errors:
types_list = get_type_strings(_errors[selector]["inputs"])
Expand Down

0 comments on commit 0620d2e

Please sign in to comment.