From 884a89b303583c16530c36ee48bbf021e45ac07d Mon Sep 17 00:00:00 2001 From: blnkoff Date: Mon, 22 Apr 2024 22:56:25 +0300 Subject: [PATCH] Updating of evm-wallet version to `2.0.2` --- evm_extras/tools.py | 3 ++- pyproject.toml | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/evm_extras/tools.py b/evm_extras/tools.py index 0202f94..7e55e0d 100644 --- a/evm_extras/tools.py +++ b/evm_extras/tools.py @@ -1,6 +1,7 @@ import os import json from eth_typing import AnyAddress +from evm_wallet import AsyncWallet, Wallet from hexbytes import HexBytes from web3 import AsyncWeb3, Web3 from typing import Optional @@ -125,7 +126,7 @@ def validate_network(func): @wraps(func) def wrapper(self, *args, **kwargs): network = self.network - wallet = self.wallet + wallet: Wallet | AsyncWallet = self.wallet if network != wallet.network: defi = self._defi_name or self.__class__.__name__ diff --git a/pyproject.toml b/pyproject.toml index 1d54f36..79e1b98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = 'evm_extras' -version = '0.1.3' +version = '0.2.0' description = 'The package containing utilities to develop Web3-based projects' authors = ['Alexey '] license = 'MIT' @@ -23,14 +23,14 @@ packages = [{ include = 'evm_extras' }] python = '^3.11' web3 = "^6.12.0" python-extras = "^0.1.6" -evm-wallet = "^1.2.0" +evm-wallet = "^2.0.2" [tool.poetry.group.dev.dependencies] -pytest = "^7.4.3" -pytest-asyncio = "^0.23.2" build = "^1.0.3" twine = "^4.0.2" -pytest-evm = {version = "^0.1.0", extras = ["dotenv"]} +pytest = "^8.1.1" +pytest-asyncio = "^0.23.6" +pytest-evm = "^0.2.0" [build-system] requires = ['poetry-core']