File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
packages/examples/cvat/recording-oracle/src/chain Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 22
33from human_protocol_sdk .constants import ChainId , Status
44from 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
66from human_protocol_sdk .storage import StorageUtils
77
88from 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
You can’t perform that action at this time.
0 commit comments