Skip to content

Commit 5f0e894

Browse files
authored
Merge pull request #3296 from pingshuijie/master
chore: fix some typos for python files
2 parents cc5b1e7 + c4713cf commit 5f0e894

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

integration_tests/test_framework/test_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def wait_for_tx(self, all_txs, check_status=False):
583583
if check_status:
584584
for i in receipts:
585585
if int(i["outcomeStatus"], 0) != 0:
586-
raise AssertionError("Receipt states the execution failes: {}".format(i))
586+
raise AssertionError("Receipt states the execution fails: {}".format(i))
587587
return receipts
588588

589589
def start_block_gen(self):

integration_tests/test_framework/util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ def generate_single_block_for_base_fee_manipulation(rpc: "RpcClient", acct: CfxL
918918
return new_block, starting_nonce + tx_per_block
919919

920920
# for transactions in either pivot/non-pivot block
921-
# checks priority fee is calculated as expeted
921+
# checks priority fee is calculated as expected
922922
def assert_correct_fee_computation_for_core_tx(rpc: "RpcClient", tx_hash: str, burnt_ratio=0.5):
923923
def get_gas_charged(rpc: "RpcClient", tx_hash: str) -> int:
924924
gas_limit = int(rpc.get_tx(tx_hash)["gas"], 16)

tests/test_framework/test_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def wait_for_tx(self, all_txs, check_status=False):
687687
if check_status:
688688
for i in receipts:
689689
if int(i["outcomeStatus"], 0) != 0:
690-
raise AssertionError("Receipt states the execution failes: {}".format(i))
690+
raise AssertionError("Receipt states the execution fails: {}".format(i))
691691
return receipts
692692

693693
def start_block_gen(self):

tests/test_framework/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def generate_single_block_for_base_fee_manipulation(rpc: "RpcClient", acct: CfxL
896896
return new_block, starting_nonce + tx_per_block
897897

898898
# for transactions in either pivot/non-pivot block
899-
# checks priority fee is calculated as expeted
899+
# checks priority fee is calculated as expected
900900
def assert_correct_fee_computation_for_core_tx(rpc: "RpcClient", tx_hash: str, burnt_ratio=0.5):
901901
def get_gas_charged(rpc: "RpcClient", tx_hash: str) -> int:
902902
gas_limit = int(rpc.get_tx(tx_hash)["gas"], 16)

tests/throttle_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def set_test_params(self):
1515
}
1616

1717
def setup_chain(self):
18-
# prepare throttling configuratoin file
18+
# prepare throttling configuration file
1919
throttle_conf = os.path.join(self.options.tmpdir, "throttling.toml")
2020
# Note: Should not use cfx_getBestBlockHash for this test, because it has been called to start a node.
2121
with open(throttle_conf, "w") as fp:

0 commit comments

Comments
 (0)