Skip to content

Commit fcc417f

Browse files
authored
fix: add owner field to batch-ctf-redemption request (#13)
The relayer expects 'owner' as a top-level field in the batch redemption payload, but request_batch_ctf_redemption was only sending { chainId, redemptions }. This caused the relayer to return 'Invalid owner address format'. Now includes the signer's address as 'owner' in the request body, matching the frontend's request format: { chainId, owner, redemptions } Also adds _require_signer() check since owner comes from the signer.
1 parent 97c79fc commit fcc417f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

turbine_client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,8 +1593,10 @@ def request_batch_ctf_redemption(
15931593
AuthenticationError: If no auth is configured.
15941594
"""
15951595
self._require_auth()
1596+
self._require_signer()
15961597
data = {
15971598
"chainId": self._chain_id,
1599+
"owner": self._signer.address,
15981600
"redemptions": redemptions,
15991601
}
16001602
return self._http.post(

0 commit comments

Comments
 (0)