From 07c556d61e08acdc24a8f2974100e2e032d017dc Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Thu, 14 Nov 2024 11:02:49 +0100 Subject: [PATCH] Revert "fix pylint issue" This reverts commit 7849a08e62d33da4b6f93e14765147dd3704456f. --- src/fetch/transfer_file.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fetch/transfer_file.py b/src/fetch/transfer_file.py index 8b4201d3..aafb806f 100644 --- a/src/fetch/transfer_file.py +++ b/src/fetch/transfer_file.py @@ -58,7 +58,7 @@ def manual_propose(transfers: list[Transfer], period: AccountingPeriod) -> None: def auto_propose( transfers: list[Transfer], - log_saver_obj: PrintStore, + log_saver: PrintStore, slack_client: WebClient, dry_run: bool, ) -> None: @@ -74,14 +74,14 @@ def auto_propose( assert NODE_URL is not None, "NODE_URL env variable not set!" client = EthereumClient(URI(NODE_URL)) - log_saver_obj.print(Transfer.summarize(transfers), category=Category.TOTALS) + log_saver.print(Transfer.summarize(transfers), category=Category.TOTALS) transactions = prepend_unwrap_if_necessary( client, SAFE_ADDRESS, transactions=[t.as_multisend_tx() for t in transfers] ) if len(transactions) > len(transfers): - log_saver_obj.print("Prepended WETH unwrap", Category.GENERAL) + log_saver.print("Prepended WETH unwrap", Category.GENERAL) - log_saver_obj.print( + log_saver.print( f"Instructions for verifying the payout transaction can be found at\n{DOCS_URL}", category=Category.GENERAL, ) @@ -102,7 +102,7 @@ def auto_propose( f"To sign and execute, visit:\n{SAFE_URL}\n" f"More details in thread" ), - sub_messages=log_saver_obj.get_values(), + sub_messages=log_saver.get_values(), ) @@ -144,7 +144,7 @@ def main() -> None: ssl_context.verify_mode = ssl.CERT_REQUIRED auto_propose( transfers=payout_transfers, - log_saver_obj=log_saver, + log_saver=log_saver, slack_client=WebClient( token=os.environ["SLACK_TOKEN"], # https://stackoverflow.com/questions/59808346/python-3-slack-client-ssl-sslcertverificationerror