diff --git a/ape_solidity/compiler.py b/ape_solidity/compiler.py index 6a6726b..6775c49 100644 --- a/ape_solidity/compiler.py +++ b/ape_solidity/compiler.py @@ -941,7 +941,7 @@ def enrich_error(self, err: ContractLogicError) -> ContractLogicError: # Nothing to do. return err - if panic_cls := _get_sol_panic(err.revert_message): + elif panic_cls := _get_sol_panic(err.revert_message): return panic_cls( base_err=err.base_err, contract_address=err.contract_address, diff --git a/pyproject.toml b/pyproject.toml index 10d07d8..5e7fecd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ write_to = "ape_solidity/version.py" [tool.black] line-length = 100 -target-version = ['py38', 'py39', 'py310', 'py311'] +target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] include = '\.pyi?$' [tool.pytest.ini_options]