From 87ef9f08696865ef2a5dce4efad929de3f4fffcc Mon Sep 17 00:00:00 2001 From: doggie <3859395+fubuloubu@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:37:15 -0400 Subject: [PATCH] fix: wrong signature encoding --- ape_safe/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ape_safe/client.py b/ape_safe/client.py index f965a23..15a7653 100644 --- a/ape_safe/client.py +++ b/ape_safe/client.py @@ -271,7 +271,7 @@ def post_transaction(self, safe_tx: SafeTx, sigs: Optional[List[MessageSignature tx_data = UnexecutedTxData.from_safe_tx(safe_tx) if sigs: tx_data.signatures = HexBytes( - reduce(lambda raw_sig, next_sig: raw_sig + next_sig.encode_vrs(), sigs, b"") + reduce(lambda raw_sig, next_sig: raw_sig + next_sig.encode_rsv(), sigs, b"") ) url = f"{self.transaction_service_url}/api/v1/multisig-transactions" @@ -286,7 +286,7 @@ def post_signature(self, safe_tx_hash: SafeTxID, signature: MessageSignature): f"/v1/multisig-transactions/{str(safe_tx_hash)}/confirmations" ) response = requests.post( - url, json={"origin": "ApeWorX/ape-safe", "signature": signature.encode_vrs().hex()} + url, json={"origin": "ApeWorX/ape-safe", "signature": signature.encode_rsv().hex()} ) if not response.ok: