Add shell parameter to head_object calls

Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
Vladimir Domnich 2022-10-19 10:26:14 +04:00 committed by Vladimir
parent 3de4d574d3
commit b38403699c
4 changed files with 32 additions and 32 deletions

View file

@ -11,8 +11,8 @@ def verify_head_tombstone(wallet_path: str, cid: str, oid_ts: str, oid: str, she
header = head_object(wallet_path, cid, oid_ts, shell=shell)["header"]
assert header["containerID"] == cid, "Tombstone Header CID is wrong"
with open(wallet_path, "r") as fout:
wlt_data = json.loads(fout.read())
with open(wallet_path, "r") as file:
wlt_data = json.loads(file.read())
wlt = wallet.Wallet.from_json(wlt_data, password="")
addr = wlt.accounts[0].address