Change mamba version with update imports

Signed-off-by: Aleskei Chetaev <alex.chetaev@gmail.com>
This commit is contained in:
a.chetaev 2023-02-06 18:12:04 +01:00 committed by Aleksey Chetaev
parent 54ac125f40
commit cea3ab5126
7 changed files with 9 additions and 8 deletions

View file

@ -1,7 +1,8 @@
import json
import logging
from neo3 import wallet as neo3_wallet
from neo3.wallet import wallet as neo3_wallet
from neo3.wallet import account as neo3_account
logger = logging.getLogger("neofs.testlib.utils")
@ -14,7 +15,7 @@ def init_wallet(wallet_path: str, wallet_password: str):
wallet_password: The password for new wallet.
"""
wallet = neo3_wallet.Wallet()
account = neo3_wallet.Account.create_new(wallet_password)
account = neo3_account.Account.create_new(wallet_password)
wallet.account_add(account)
with open(wallet_path, "w") as out:
json.dump(wallet.to_json(), out)