Skip to content

Commit 018fc60

Browse files
committed
Update escrow manifest uses
1 parent 04261a3 commit 018fc60

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def validate_escrow(
4848
def download_manifest(chain_id: int, escrow_address: str) -> dict:
4949
escrow = get_escrow(chain_id, escrow_address)
5050

51-
manifest_content = StorageUtils.download_file_from_url(escrow.manifest_url).decode("utf-8")
51+
manifest_content = StorageUtils.download_file_from_url(escrow.manifest).decode("utf-8")
5252

5353
if EncryptionUtils.is_encrypted(manifest_content):
5454
encryption = Encryption(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def validate_escrow(
4646
def get_escrow_manifest(chain_id: int, escrow_address: str) -> dict:
4747
escrow = get_escrow(chain_id, escrow_address)
4848

49-
manifest_content = StorageUtils.download_file_from_url(escrow.manifest_url).decode("utf-8")
49+
manifest_content = StorageUtils.download_file_from_url(escrow.manifest).decode("utf-8")
5050

5151
if EncryptionUtils.is_encrypted(manifest_content):
5252
encryption = Encryption(

packages/examples/cvat/recording-oracle/tests/integration/chain/test_escrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def escrow(self, status: str = "Pending", balance: float = amount):
5959
mock_escrow.status = status
6060
mock_escrow.balance = balance
6161
mock_escrow.reputation_oracle = REPUTATION_ORACLE_ADDRESS
62-
mock_escrow.manifest_url = "http://s3.amazonaws.com"
62+
mock_escrow.manifest = "http://s3.amazonaws.com"
6363
return mock_escrow
6464

6565
def test_validate_escrow(self):

packages/examples/cvat/recording-oracle/tests/integration/chain/test_kvstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setup(self):
4343
token=TOKEN_ADDRESS,
4444
total_funded_amount=1000,
4545
created_at="",
46-
manifest_url=DEFAULT_MANIFEST_URL,
46+
manifest=DEFAULT_MANIFEST_URL,
4747
exchange_oracle=EXCHANGE_ORACLE_ADDRESS,
4848
reputation_oracle=REPUTATION_ORACLE_ADDRESS,
4949
)

packages/examples/cvat/recording-oracle/tests/utils/setup_escrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setup_escrow(web3: Web3, escrow_address: str):
4343
recording_oracle_fee=RECORDING_ORACLE_FEE,
4444
reputation_oracle_address=REPUTATION_ORACLE_ADDRESS,
4545
reputation_oracle_fee=REPUTATION_ORACLE_FEE,
46-
manifest_url=DEFAULT_MANIFEST_URL,
46+
manifest=DEFAULT_MANIFEST_URL,
4747
hash=DEFAULT_HASH,
4848
),
4949
)

0 commit comments

Comments
 (0)