Skip to content

Commit f5d3362

Browse files
authored
Upgrade human protocol sdk in oracles (#2790)
1 parent 569b641 commit f5d3362

File tree

6 files changed

+13
-59
lines changed

6 files changed

+13
-59
lines changed

packages/examples/cvat/exchange-oracle/poetry.lock

Lines changed: 4 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/examples/cvat/exchange-oracle/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ datumaro = {git = "https://github.com/cvat-ai/datumaro.git", rev = "ff83c00c2c1b
2424
boto3 = "^1.28.33"
2525
google-cloud-storage = "^2.14.0"
2626
pyinstrument = "^4.6.2"
27-
human-protocol-sdk = "^3.0.4"
27+
human-protocol-sdk = ">=3.0.7b0,<3.1.0"
2828
hexbytes = ">=1.2.0" # required for to_0x_hex() function
2929
pydantic = ">=2.6.1,<2.7.0"
3030
fastapi-pagination = "^0.12.17"

packages/examples/cvat/exchange-oracle/src/chain/escrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_escrow_manifest(chain_id: int, escrow_address: str) -> dict:
5252
Config.encryption_config.pgp_private_key,
5353
passphrase=Config.encryption_config.pgp_passphrase,
5454
)
55-
manifest_content = encryption.decrypt(manifest_content)
55+
manifest_content = encryption.decrypt(manifest_content).decode("utf-8")
5656

5757
return json.loads(manifest_content)
5858

0 commit comments

Comments
 (0)