diff --git a/skale/contracts/dkg.py b/skale/contracts/dkg.py index 3ebbcc7f..a18427a1 100644 --- a/skale/contracts/dkg.py +++ b/skale/contracts/dkg.py @@ -27,10 +27,10 @@ def gas_price(self): @transaction_method(GAS['dkg_broadcast']) def broadcast(self, group_index, node_index, - verification_vector, secret_key_conribution): + verification_vector, secret_key_contribution): return self.contract.functions.broadcast(group_index, node_index, verification_vector, - secret_key_conribution) + secret_key_contribution) @transaction_method(GAS['dkg_response']) def response(self, group_index, from_node_index, diff --git a/skale/utils/account_tools.py b/skale/utils/account_tools.py index 4b45c719..d45d63b2 100644 --- a/skale/utils/account_tools.py +++ b/skale/utils/account_tools.py @@ -100,7 +100,7 @@ def generate_accounts(skale, n_wallets = int(n_wallets) results = [] - for i in range(0, n_wallets): + for _ in range(0, n_wallets): wallet = generate_account(skale.web3) send_tokens(skale, skale.wallet, wallet['address'], skale_amount) diff --git a/skale/utils/exceptions.py b/skale/utils/exceptions.py index 5a7ba119..199352c4 100644 --- a/skale/utils/exceptions.py +++ b/skale/utils/exceptions.py @@ -19,7 +19,7 @@ class RPCWalletError(Exception): - """Raised when remote wallet retured an error""" + """Raised when remote wallet returned an error""" class InvalidWalletError(Exception): diff --git a/tests/contracts/dkg_test.py b/tests/contracts/dkg_test.py index d3c26acc..c5569934 100644 --- a/tests/contracts/dkg_test.py +++ b/tests/contracts/dkg_test.py @@ -18,13 +18,13 @@ def test_broadcast(skale): group_index = b'e629fa6598d732768f7c726b4b621285' node_index = 0 validation_vector = b'validation-vector' - secret_key_conribution = b'secret-key-contrib' + secret_key_contribution = b'secret-key-contrib' exp = skale.web3.eth.account.signTransaction( expected_txn, skale.wallet._private_key).rawTransaction with mock.patch.object(web3.eth.Eth, 'sendRawTransaction') as send_tx_mock: send_tx_mock.return_value = b'hexstring' - skale.dkg.broadcast(group_index, node_index, validation_vector, secret_key_conribution, + skale.dkg.broadcast(group_index, node_index, validation_vector, secret_key_contribution, gas_price=skale.dkg.gas_price()) send_tx_mock.assert_called_with(HexBytes(exp)) diff --git a/tests/multithreading_test.py b/tests/multithreading_test.py index 26ead3ae..cb32bd96 100644 --- a/tests/multithreading_test.py +++ b/tests/multithreading_test.py @@ -13,7 +13,7 @@ def get_node_data(): skale.nodes_data.get_by_name(DEFAULT_NODE_NAME) -def test_multithead_calls(): +def test_multithread_calls(): init_web3(ENDPOINT) monitors = [] for _ in range(0, 5): diff --git a/tests/schain_config/generator_test.py b/tests/schain_config/generator_test.py index 3da73729..7decc570 100644 --- a/tests/schain_config/generator_test.py +++ b/tests/schain_config/generator_test.py @@ -12,7 +12,7 @@ TEST_NODE_IP = '10.10.10.10' NODE_INFO_LEN = 15 SCHAIN_INFO_LEN = 4 -TEST_ACCOUNTS_LEN = 2 # because we're creating eveything from one account +TEST_ACCOUNTS_LEN = 2 # because we're creating everything from one account TEST_BASE_CONFIG = {