@@ -48,6 +48,7 @@ def __init__(
48
48
reputation_oracle_fee : Decimal ,
49
49
manifest_url : str ,
50
50
hash : str ,
51
+ skip_manifest_url_validation : bool = False ,
51
52
):
52
53
"""
53
54
Initializes a Escrow instance.
@@ -59,6 +60,7 @@ def __init__(
59
60
reputation_oracle_fee (Decimal): Fee percentage of the Reputation Oracle
60
61
manifest_url (str): Manifest file url
61
62
hash (str): Manifest file hash
63
+ skip_manifest_url_validation (bool): Identify wether validate manifest_url
62
64
"""
63
65
if not Web3 .is_address (recording_oracle_address ):
64
66
raise EscrowClientError (
@@ -74,7 +76,7 @@ def __init__(
74
76
raise EscrowClientError ("Fee must be between 0 and 100" )
75
77
if recording_oracle_fee + reputation_oracle_fee > 100 :
76
78
raise EscrowClientError ("Total fee must be less than 100" )
77
- if not URL (manifest_url ):
79
+ if not URL (manifest_url ) and not skip_manifest_url_validation :
78
80
raise EscrowClientError (f"Invalid manifest URL: { manifest_url } " )
79
81
if not hash :
80
82
raise EscrowClientError ("Invalid empty manifest hash" )
@@ -187,7 +189,7 @@ def create_escrow(self, token_address: str, trusted_handlers: List[str]) -> str:
187
189
)
188
190
return next (
189
191
(
190
- self .factory_contract .events .Launched ().processLog (log )
192
+ self .factory_contract .events .Launched ().process_log (log )
191
193
for log in transaction_receipt ["logs" ]
192
194
if log ["address" ] == self .network ["factory_address" ]
193
195
),
0 commit comments