Skip to content

Commit f6c8376

Browse files
committed
fix(Client): updated URLs for new API
1 parent 4cbd76b commit f6c8376

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ape_safe/client/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)