From 43a3bef93a4f40cdc9e1863e9088b898ee20748a Mon Sep 17 00:00:00 2001 From: pucedoteth <119044801+pucedoteth@users.noreply.github.com> Date: Mon, 14 Sep 2026 01:33:08 +0200 Subject: [PATCH] Remove stray debug print statements from the SDK Two library functions print to stdout on every call: - `request_pnl_settlement` prints the full EIP-712 settlement message (broker, chain, nonce, user address, timestamp) before signing it. - `get_referral_rebate_summary` prints its start/end date arguments. Both are leftover debugging output. A library should not write to stdout, and the settlement one leaks the structured message a caller is about to sign into the application's logs. Co-Authored-By: Claude Opus 4.8 --- orderly_evm_connector/rest/_referral.py | 1 - orderly_evm_connector/rest/_settlement.py | 1 - 2 files changed, 2 deletions(-) diff --git a/orderly_evm_connector/rest/_referral.py b/orderly_evm_connector/rest/_referral.py index 6e1b855..c1d5992 100644 --- a/orderly_evm_connector/rest/_referral.py +++ b/orderly_evm_connector/rest/_referral.py @@ -156,7 +156,6 @@ def get_referral_rebate_summary(self, start_date: str = None, end_date: str = No https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-referral-rebate-summary#openapi-evmopenapi-get-v1referralrebate_summary """ - print(start_date,end_date) check_required_parameters([[start_date,"start_date"],[end_date,"end_date"]]) payload = { "start_date": start_date, diff --git a/orderly_evm_connector/rest/_settlement.py b/orderly_evm_connector/rest/_settlement.py index 4f6946f..386aa47 100644 --- a/orderly_evm_connector/rest/_settlement.py +++ b/orderly_evm_connector/rest/_settlement.py @@ -83,7 +83,6 @@ def request_pnl_settlement( ], }, } - print(message) _signature = self.get_wallet_signature(message=message) payload = { "message": _message,