From 6d0b95b5b693556f06ce12d28494e6231b946d82 Mon Sep 17 00:00:00 2001 From: ZigaMr Date: Tue, 15 Oct 2024 11:27:16 +0200 Subject: [PATCH] Align default argument declaration with pep8 notation --- clients/py/sapphirepy/sapphire.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/py/sapphirepy/sapphire.py b/clients/py/sapphirepy/sapphire.py index 09b8c573..b1c80bf1 100644 --- a/clients/py/sapphirepy/sapphire.py +++ b/clients/py/sapphirepy/sapphire.py @@ -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): @@ -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,