Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #70 from lidofinance/feature/remove-poa-middleware…
Browse files Browse the repository at this point in the history
…-check

remove-poa-middleware-check
  • Loading branch information
F4ever authored Jul 25, 2022
2 parents e783d47 + 42809ba commit b4b207a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[comment]: <> (## [Unreleased]&#40;https://github.com/lidofinance/lido-python-sdk&#41; - 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
Expand Down
9 changes: 0 additions & 9 deletions lido_sdk/lido.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT License"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
EMAIL = "[email protected]"
AUTHOR = "Lido"
REQUIRES_PYTHON = ">=3.7,<4"
VERSION = "2.5.2"
VERSION = "2.5.3"

# Detecting target platform
PLATFORMS = {"windows", "linux", "darwin", "cygwin", "android"}
Expand Down

0 comments on commit b4b207a

Please sign in to comment.