Skip to content

Commit

Permalink
Align default argument declaration with pep8 notation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigaMr committed Oct 16, 2024
1 parent 46e13ee commit 6d0b95b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clients/py/sapphirepy/sapphire.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _encrypt_tx_params(pk: CalldataPublicKey,
params: tuple[TxParams],
method,
web3: Web3,
account: Optional[LocalAccount] = None) -> TransactionCipher:
account: Optional[LocalAccount]=None) -> TransactionCipher:
c = TransactionCipher(peer_pubkey=pk['key'], peer_epoch=pk['epoch'])
data = params[0]['data']
if isinstance(data, bytes):
Expand All @@ -95,7 +95,6 @@ def _encrypt_tx_params(pk: CalldataPublicKey,
encrypted_data = c.encrypt(data_bytes)

if method == 'eth_call' and params[0]['from'] and account:
# assert account is not None, 'Account must be provided for encrypted calls!'
data_pack = _new_signed_call_data_pack(c.make_envelope(data_bytes),
data_bytes,
params,
Expand Down

0 comments on commit 6d0b95b

Please sign in to comment.