From 42809baef8b1378b03307a4df24e9526d7635fb3 Mon Sep 17 00:00:00 2001 From: Raman Siamionau Date: Fri, 22 Jul 2022 18:08:39 +0300 Subject: [PATCH] fix conflicts --- CHANGELOG.md | 4 ++++ lido_sdk/lido.py | 9 --------- pyproject.toml | 2 +- setup.py | 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f381640..10d216a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [comment]: <> (## [Unreleased](https://github.com/lidofinance/lido-python-sdk) - 2021-09-15) +## [2.5.3](https://github.com/lidofinance/lido-python-sdk) - 2022-07-22 +### Removed +- Removed PoA check for Goerli nerwork ([#0068](https://github.com/lidofinance/lido-python-sdk/pull/68)) + ## [2.5.2](https://github.com/lidofinance/lido-python-sdk) - 2022-04-01 ### Fix - Set upper bound to `multicall` version diff --git a/lido_sdk/lido.py b/lido_sdk/lido.py index 72464ee..2401cde 100644 --- a/lido_sdk/lido.py +++ b/lido_sdk/lido.py @@ -30,15 +30,6 @@ def __init__(self, w3: Web3, **kwargs): self._w3 = w3 self._set_configs(kwargs) - if self._w3.eth.chain_id == Network.Görli: - from web3.middleware import geth_poa_middleware - - # Checking by value b/c we don't know the key - if geth_poa_middleware not in self._w3.middleware_onion: - raise LidoException( - "PoA middleware isn't injected into Web3 middleware onion" - ) - def _set_configs(self, kwargs: Dict): chain_id = self._w3.eth.chain_id # Lifehack to cache chain_id diff --git a/pyproject.toml b/pyproject.toml index 331d4d8..4422c28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lido-sdk" -version = "2.5.2" +version = "2.5.3" description = "This library consolidates various functions to efficiently load network data for Lido, validate node operator keys and find key duplicates." authors = ["Lido "] license = "MIT License" diff --git a/setup.py b/setup.py index b29c0e8..61ffb2f 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ EMAIL = "info@lido.fi" AUTHOR = "Lido" REQUIRES_PYTHON = ">=3.7,<4" -VERSION = "2.5.2" +VERSION = "2.5.3" # Detecting target platform PLATFORMS = {"windows", "linux", "darwin", "cygwin", "android"}