Skip to content

Commit

Permalink
Revert "fix pylint issue"
Browse files Browse the repository at this point in the history
This reverts commit 7849a08.
  • Loading branch information
fhenneke committed Nov 14, 2024
1 parent 2571b84 commit 07c556d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/fetch/transfer_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
)
Expand All @@ -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(),
)


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 07c556d

Please sign in to comment.