Change mamba version, fix imports and support python 3.10

Signed-off-by: Aleskei Chetaev <alex.chetaev@gmail.com>
This commit is contained in:
Aleskei Chetaev 2023-02-10 09:29:31 +01:00 committed by Aleksey Chetaev
parent 850c0e77ec
commit d76951ed4f
6 changed files with 9 additions and 24 deletions

View file

@ -2,7 +2,7 @@ import base64
import json
import base58
from neo3 import wallet
from neo3.wallet import wallet
def dict_to_attrs(attrs: dict) -> str:

View file

@ -8,7 +8,8 @@ from typing import Optional
import allure
from cluster import MainChain, MorphChain
from common import GAS_HASH, MAINNET_BLOCK_TIME, NEOFS_CONTRACT, NEOGO_EXECUTABLE
from neo3 import wallet as neo3_wallet
from neo3.wallet import wallet as neo3_wallet
from neo3.wallet import utils as neo3_utils
from neofs_testlib.cli import NeoGo
from neofs_testlib.shell import Shell
from neofs_testlib.utils.converters import contract_hash_to_address
@ -43,7 +44,7 @@ def get_contract_hash(morph_chain: MorphChain, resolve_name: str, shell: Shell)
@allure.step("Withdraw Mainnet Gas")
def withdraw_mainnet_gas(shell: Shell, main_chain: MainChain, wlt: str, amount: int):
address = get_last_address_from_wallet(wlt, EMPTY_PASSWORD)
scripthash = neo3_wallet.Account.address_to_script_hash(address)
scripthash = neo3_utils.address_to_script_hash(address)
neogo = NeoGo(shell=shell, neo_go_exec_path=NEOGO_EXECUTABLE)
out = neogo.contract.invokefunction(

View file

@ -2,7 +2,7 @@ import json
import logging
import allure
from neo3 import wallet
from neo3.wallet import wallet
from neofs_testlib.shell import Shell
from neofs_verbs import head_object