Skip to content

Commit

Permalink
Merge pull request #1 from blnkoff/dev
Browse files Browse the repository at this point in the history
v0.2.2
  • Loading branch information
blnkoff authored Jul 15, 2024
2 parents f723a55 + a13d27e commit d6ed549
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion evm_extras/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def load_contracts(
path = os.path.join(contracts_path, folder_name)

if version:
path = os.path.join(contracts_path, f'v{version}')
path = os.path.join(path, f'v{version}')

contract_data = {}
with open(f"{path}/contracts.json") as file:
Expand Down
4 changes: 4 additions & 0 deletions evm_extras/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from typing import Literal
from evm_wallet import ERC20Token
from web3.contract import AsyncContract, Contract
from web3.types import ABI

ContractMap = dict[str, AsyncContract | ABI | Contract]
NativeToken = Literal['AVAX', 'ETH', 'BNB', 'FTM', 'MATIC', '0x0000000000000000000000000000000000000000']
Token = ERC20Token | NativeToken
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 = 'evm_extras'
version = '0.2.1'
version = '0.2.2'
description = 'The package containing utilities to develop Web3-based projects'
authors = ['Alexey <[email protected]>']
license = 'MIT'
Expand Down

0 comments on commit d6ed549

Please sign in to comment.