From b7677ca55c139d0adcdcbca21acb563ff0bc186d Mon Sep 17 00:00:00 2001 From: Chadwick Strange Date: Fri, 10 Apr 2020 12:04:38 +0200 Subject: [PATCH 1/6] Fix typo --- skale/contracts/dkg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, From ef4a5e55e974c42af66dca4f8b6d4bf30ae63d92 Mon Sep 17 00:00:00 2001 From: Chadwick Strange Date: Fri, 10 Apr 2020 12:09:02 +0200 Subject: [PATCH 2/6] Fix typo --- skale/utils/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): From 85ef75e1c6997ea57acb10c92d5d168762e117d3 Mon Sep 17 00:00:00 2001 From: Chadwick Strange Date: Fri, 10 Apr 2020 12:13:00 +0200 Subject: [PATCH 3/6] Fix typo --- tests/multithreading_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): From 0e5aea008fddfcc150727807a0a8dcd9d5d33a4e Mon Sep 17 00:00:00 2001 From: Chadwick Strange Date: Fri, 10 Apr 2020 12:13:47 +0200 Subject: [PATCH 4/6] Fix typo --- tests/contracts/dkg_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) From 0c988846757aacdb2eec3141b8bb243f5e107256 Mon Sep 17 00:00:00 2001 From: Chadwick Strange Date: Fri, 10 Apr 2020 12:14:06 +0200 Subject: [PATCH 5/6] Fix typo --- tests/schain_config/generator_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { From 3830fec9eb645cbd2b88d5fc14cf4d9c76a6faf5 Mon Sep 17 00:00:00 2001 From: Chadwick Strange Date: Fri, 10 Apr 2020 12:15:10 +0200 Subject: [PATCH 6/6] Fix pylint unused variable --- skale/utils/account_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)