diff --git a/CHANGELOG.md b/CHANGELOG.md index b9b845272..8e4528f0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/eth-brownie/brownie) +## [1.19.5](https://github.com/eth-brownie/brownie/tree/v1.19.5) - 2024-01-31 +### Added +- Support for custom / typed errors ([#1728](https://github.com/eth-brownie/brownie/pull/1728)) + +### Changed +- Default to EIP1559-style transactions on live networks ([#1727](https://github.com/eth-brownie/brownie/pull/1727)) + +### Fixed +- Readthedocs missing config file ([#1729](https://github.com/eth-brownie/brownie/pull/1729)) + ## [1.19.4](https://github.com/eth-brownie/brownie/tree/v1.19.4) - 2024-01-29 ### Added - `viaIR` optimizer support ([#1572](https://github.com/eth-brownie/brownie/pull/1572)) diff --git a/brownie/_config.py b/brownie/_config.py index 4b6c34d21..81193c894 100644 --- a/brownie/_config.py +++ b/brownie/_config.py @@ -19,7 +19,7 @@ from brownie._expansion import expand_posix_vars from brownie._singleton import _Singleton -__version__ = "1.19.4" +__version__ = "1.19.5" BROWNIE_FOLDER = Path(__file__).parent DATA_FOLDER = Path.home().joinpath(".brownie") diff --git a/brownie/project/compiler/__init__.py b/brownie/project/compiler/__init__.py index 0ff06c05d..1923edf23 100644 --- a/brownie/project/compiler/__init__.py +++ b/brownie/project/compiler/__init__.py @@ -41,7 +41,6 @@ } - def compile_and_format( contract_sources: Dict[str, str], solc_version: Optional[str] = None, @@ -179,7 +178,9 @@ def generate_input_json( if evm_version is None: _module = solidity if language == "Solidity" else vyper - evm_version = next(i[0] for i in _module.EVM_VERSION_MAPPING if _module.get_version() >= i[1]) + evm_version = next( + i[0] for i in _module.EVM_VERSION_MAPPING if _module.get_version() >= i[1] + ) input_json: Dict = deepcopy(STANDARD_JSON) input_json["language"] = language diff --git a/brownie/project/compiler/solidity.py b/brownie/project/compiler/solidity.py index 0e497a52f..a1b3d09e3 100644 --- a/brownie/project/compiler/solidity.py +++ b/brownie/project/compiler/solidity.py @@ -12,7 +12,7 @@ from solcast.nodes import NodeBase, is_inside_offset from brownie._config import EVM_EQUIVALENTS -from brownie.exceptions import CompilerError, IncompatibleSolcVersion, SOLIDITY_ERROR_CODES # noqa +from brownie.exceptions import SOLIDITY_ERROR_CODES, CompilerError, IncompatibleSolcVersion # noqa from brownie.project.compiler.utils import _get_alias, expand_source_map from . import sources diff --git a/brownie/project/flattener.py b/brownie/project/flattener.py index 78cda2f10..2d77bf5d0 100644 --- a/brownie/project/flattener.py +++ b/brownie/project/flattener.py @@ -39,7 +39,7 @@ def path_to_name(cls, pth: str) -> str: Note, that sometimes there could be several different files with the same name in a project, so these files should keep uniq name to correct verification. """ - return 'contracts/' + pth.split('/contracts/')[1] + return "contracts/" + pth.split("/contracts/")[1] def traverse(self, fp: str) -> None: """Traverse a contract source files dependencies. @@ -66,8 +66,8 @@ def traverse(self, fp: str) -> None: # replacement function for re.sub, we just sanitize the path repl = ( # noqa: E731 lambda m: f'import{m.group("prefix")}' - + f'"{self.path_to_name(sanitize(m.group("path")))}"' - + f'{m.group("suffix")}' + + f'"{self.path_to_name(sanitize(m.group("path")))}"' + + f'{m.group("suffix")}' ) self.sources[name] = IMPORT_PATTERN.sub(repl, source) if fp_obj.name not in self.dependencies: diff --git a/brownie/project/main.py b/brownie/project/main.py index dd34e60ef..ac3f71ce1 100644 --- a/brownie/project/main.py +++ b/brownie/project/main.py @@ -727,7 +727,7 @@ def load( project_path: Union[Path, str, None] = None, name: Optional[str] = None, raise_if_loaded: bool = True, - compile: bool = True + compile: bool = True, ) -> "Project": """Loads a project and instantiates various related objects. @@ -1028,7 +1028,7 @@ def _load_sources(project_path: Path, subfolder: str, allow_json: bool) -> Dict: continue if next((i for i in path.relative_to(project_path).parts if i.startswith("_")), False): continue - with path.open(encoding='utf-8') as fp: + with path.open(encoding="utf-8") as fp: source = fp.read() if hasattr(hooks, "brownie_load_source"): diff --git a/setup.cfg b/setup.cfg index 61dd6e0f8..52eef0c71 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.19.4 +current_version = 1.19.5 [bumpversion:file:setup.py] diff --git a/setup.py b/setup.py index 16ab55fef..13737dc5e 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ setup( name="eth-brownie", packages=find_packages(), - version="1.19.4", # don't change this manually, use bumpversion instead + version="1.19.5", # don't change this manually, use bumpversion instead license="MIT", description="A Python framework for Ethereum smart contract deployment, testing and interaction.", # noqa: E501 long_description=long_description,