Skip to content

Commit ebf8c83

Browse files
Merge pull request #1751 from eth-brownie/fix-typed-error
fix: `TypeError` when outputting custom errors
2 parents a05e4d9 + a0cc9ec commit ebf8c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brownie/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,6 @@ def decode_typed_error(data: str) -> str:
291291
if selector == ERROR_SIG:
292292
return result[0]
293293
else:
294-
return f"{_errors[selector]['name']}: {', '.join(result)}"
294+
return f"{_errors[selector]['name']}: {', '.join([str(i) for i in result])}"
295295
else:
296296
return f"Unknown typed error: {data}"

0 commit comments

Comments
 (0)