Skip to content

Commit 96fb87b

Browse files
committed
Update RO
1 parent d3feeff commit 96fb87b

File tree

1 file changed

+1
-9
lines changed
  • packages/examples/cvat/recording-oracle/src/chain

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from human_protocol_sdk.constants import ChainId, Status
44
from human_protocol_sdk.encryption import Encryption, EncryptionUtils
5-
from human_protocol_sdk.escrow import EscrowData, EscrowUtils, EscrowClient
5+
from human_protocol_sdk.escrow import EscrowClient, EscrowData, EscrowUtils
66
from human_protocol_sdk.storage import StorageUtils
77

88
from src.chain.web3 import get_web3
@@ -15,14 +15,6 @@ def get_escrow(chain_id: int, escrow_address: str) -> EscrowData:
1515
if not escrow:
1616
raise Exception(f"Can't find escrow {escrow_address}")
1717

18-
# The returned value can contain invalid oracle addresses, replace them with correct ones
19-
w3 = get_web3(chain_id)
20-
escrow_client = EscrowClient(w3)
21-
escrow.launcher = escrow_client.get_job_launcher_address()
22-
escrow.exchange_oracle = escrow_client.get_exchange_oracle_address()
23-
escrow.recording_oracle = escrow_client.get_recording_oracle_address()
24-
escrow.reputation_oracle = escrow_client.get_reputation_oracle_address()
25-
2618
return escrow
2719

2820

0 commit comments

Comments
 (0)