Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarvaja committed Nov 5, 2024
1 parent cba6cbe commit 3028c84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ethproto/aa_bundler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_w3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -104,4 +105,4 @@ def test_get_events():

event2 = provider.get_events(launcher, "Event2")
assert len(event2) == 1
assert event2[0].args.value == 2
assert event2[0].args.value == 2

0 comments on commit 3028c84

Please sign in to comment.