From 3028c84551078fbf99253c9fc0c510cffc047360 Mon Sep 17 00:00:00 2001 From: "Guillermo M. Narvaja" Date: Tue, 5 Nov 2024 09:42:15 -0300 Subject: [PATCH] Lint fixes --- src/ethproto/aa_bundler.py | 4 +++- tests/test_w3.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ethproto/aa_bundler.py b/src/ethproto/aa_bundler.py index 847dd7b..e532d71 100644 --- a/src/ethproto/aa_bundler.py +++ b/src/ethproto/aa_bundler.py @@ -271,7 +271,9 @@ def build_user_operation(w3, tx, retry_nonce=None): def send_transaction(w3, tx, retry_nonce=None): user_operation = build_user_operation(w3, tx, retry_nonce) - user_operation["signature"] = sign_user_operation(AA_BUNDLER_EXECUTOR_PK, user_operation, tx["chainId"], AA_BUNDLER_ENTRYPOINT) + user_operation["signature"] = sign_user_operation( + AA_BUNDLER_EXECUTOR_PK, user_operation, tx["chainId"], AA_BUNDLER_ENTRYPOINT + ) resp = w3.provider.make_request("eth_sendUserOperation", [user_operation, AA_BUNDLER_ENTRYPOINT]) if "error" in resp: next_nonce = check_nonce_error(resp, retry_nonce) diff --git a/tests/test_w3.py b/tests/test_w3.py index b6d81df..a217973 100644 --- a/tests/test_w3.py +++ b/tests/test_w3.py @@ -78,6 +78,7 @@ def test_wrapper_build_from_def(): counter.increase() assert counter.value() == 1 + def test_get_events(): provider = wrappers.get_provider("w3") contract_def = provider.get_contract_def("EventLauncher") @@ -104,4 +105,4 @@ def test_get_events(): event2 = provider.get_events(launcher, "Event2") assert len(event2) == 1 - assert event2[0].args.value == 2 \ No newline at end of file + assert event2[0].args.value == 2