@@ -15,7 +15,7 @@ def get_recording_oracle_url(chain_id: int, escrow_address: str) -> str:
1515 # Subgraph can return invalid values, use KVStore itself
1616 w3 = get_web3 (chain_id )
1717 kvstore_client = KVStoreClient (w3 )
18- return kvstore_client .get (escrow .recording_oracle , "webhook_url" )
18+ return kvstore_client .get (w3 . to_checksum_address ( escrow .recording_oracle ) , "webhook_url" )
1919
2020
2121def get_reputation_oracle_url (chain_id : int , escrow_address : str ) -> str :
@@ -27,7 +27,7 @@ def get_reputation_oracle_url(chain_id: int, escrow_address: str) -> str:
2727 # Subgraph can return invalid values, use KVStore itself
2828 w3 = get_web3 (chain_id )
2929 kvstore_client = KVStoreClient (w3 )
30- return kvstore_client .get (escrow .reputation_oracle , "webhook_url" )
30+ return kvstore_client .get (w3 . to_checksum_address ( escrow .reputation_oracle ) , "webhook_url" )
3131
3232
3333def get_job_launcher_url (chain_id : int , escrow_address : str ) -> str :
@@ -39,7 +39,7 @@ def get_job_launcher_url(chain_id: int, escrow_address: str) -> str:
3939 # Subgraph can return invalid values, use KVStore itself
4040 w3 = get_web3 (chain_id )
4141 kvstore_client = KVStoreClient (w3 )
42- return kvstore_client .get (escrow .launcher , "webhook_url" )
42+ return kvstore_client .get (w3 . to_checksum_address ( escrow .launcher ) , "webhook_url" )
4343
4444
4545def register_in_kvstore () -> None :
0 commit comments