Skip to content

Commit

Permalink
fix: black
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed May 3, 2024
1 parent 4ce0695 commit 7b4ef97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ ape ledger add <alias>
Ledger accounts have the following capabilities in `ape`:

1. Can sign transactions
2. Can sign messages using the default EIP-191 specification
3. Can sign messages using the EIP-712 specification
1. Can sign messages using the default EIP-191 specification
1. Can sign messages using the EIP-712 specification

### Adjust HD Path

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def tx_signature(receipt):
def mock_device(mocker, hd_path, account_addresses, msg_signature, tx_signature):
device = mocker.MagicMock()
device._account = hd_path
device.get_address.side_effect = (
lambda *args, **kwargs: account_addresses[args[0]] if args else account_addresses[0]
device.get_address.side_effect = lambda *args, **kwargs: (
account_addresses[args[0]] if args else account_addresses[0]
)
device.sign_message.side_effect = lambda *args, **kwargs: msg_signature
device.sign_typed_data.side_effect = lambda *args, **kwargs: msg_signature
Expand Down

0 comments on commit 7b4ef97

Please sign in to comment.