File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ def _all_transactions(self) -> Iterator[SafeApiTxData]:
134134 url = data .get ("next" )
135135
136136 def get_confirmations (self , safe_tx_hash : SafeTxID ) -> Iterator [SafeTxConfirmation ]:
137- response = self ._get (f"/multisig-transactions/{ safe_tx_hash } /raw " )
137+ response = self ._get (f"/multisig-transactions/{ safe_tx_hash } " , api_version = "v2 " )
138138 data = response .json ()
139139 yield from map (SafeTxConfirmation .model_validate , data .get ("confirmations" , []))
140140
@@ -169,8 +169,8 @@ def post_transaction(
169169 # Signature handled above.
170170 post_dict .pop ("signatures" )
171171
172- url = f"/transactions /{ tx_data .safe } /propose "
173- response = self ._post (url , json = post_dict )
172+ url = f"/safes /{ tx_data .safe } /multisig-transactions "
173+ response = self ._post (url , json = post_dict , api_version = "v2" )
174174 return response
175175
176176 def post_signatures (
@@ -185,7 +185,7 @@ def post_signatures(
185185 safe_tx_hash = safe_tx_or_hash
186186
187187 safe_tx_hash = cast (SafeTxID , to_hex (HexBytes (safe_tx_hash )))
188- url = f"/transactions/{ safe_tx_hash } /confirmations"
188+ url = f"/multisig- transactions/{ safe_tx_hash } /confirmations"
189189 signature = to_hex (
190190 HexBytes (b"" .join ([x .encode_rsv () for x in order_by_signer (signatures )]))
191191 )
You can’t perform that action at this time.
0 commit comments