From c23edd7278444aef31a4be266c7541816d6e1621 Mon Sep 17 00:00:00 2001 From: fivecut Date: Fri, 14 Jun 2024 01:05:34 +0900 Subject: [PATCH] chore: fix some comments (#2135) --- docs/userguides/accounts.md | 2 +- tests/functional/test_block.py | 2 +- tests/integration/cli/test_accounts.py | 2 +- tests/integration/cli/test_init.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/userguides/accounts.md b/docs/userguides/accounts.md index 3aca3d8d94..18870a6dd1 100644 --- a/docs/userguides/accounts.md +++ b/docs/userguides/accounts.md @@ -188,7 +188,7 @@ ape accounts import --use-mnemonic --hd-path If you use the `--hd-path` option, you will need to pass the [HDPath](https://help.myetherwallet.com/en/articles/5867305-hd-wallets-and-derivation-paths) you'd like to use as an argument in the command. If you do not use the `--hd-path` option, Ape will use the default HDPath of (Ethereum network, first account). -You can import an account programatically using a seed phrase [using `import_account_from_mnemonic()`](../methoddocs/ape_accounts.html#ape_accounts.import_account_from_mnemonic): +You can import an account programmatically using a seed phrase [using `import_account_from_mnemonic()`](../methoddocs/ape_accounts.html#ape_accounts.import_account_from_mnemonic): ```python from ape_accounts import import_account_from_mnemonic diff --git a/tests/functional/test_block.py b/tests/functional/test_block.py index 66db7f965f..d0e2af88f4 100644 --- a/tests/functional/test_block.py +++ b/tests/functional/test_block.py @@ -87,7 +87,7 @@ def test_model_dump_and_validate(block): def test_model_validate_web3_block(): """ - Show we have good compatability with web3.py native types. + Show we have good compatibility with web3.py native types. """ data = BlockData(number=123, timestamp=123, gasLimit=123, gasUsed=100) # type: ignore actual = Block.model_validate(data) diff --git a/tests/integration/cli/test_accounts.py b/tests/integration/cli/test_accounts.py index 8a565cf1fb..13f102f31d 100644 --- a/tests/integration/cli/test_accounts.py +++ b/tests/integration/cli/test_accounts.py @@ -99,7 +99,7 @@ def test_import_alias_is_really_long(ape_cli, runner): must ensure long aliases are supported. """ - long_alias = "this is a long alias that i am going to use and you cant stop me" + long_alias = "this is a long alias that i am going to use and you can't stop me" result = runner.invoke( ape_cli, ("accounts", "import", long_alias), diff --git a/tests/integration/cli/test_init.py b/tests/integration/cli/test_init.py index e6514034c4..2ae5e2c25a 100644 --- a/tests/integration/cli/test_init.py +++ b/tests/integration/cli/test_init.py @@ -3,7 +3,7 @@ from tests.integration.cli.utils import run_once """ -The purpose of this unit test is to test the funcationality of `ape init` +The purpose of this unit test is to test the functionality of `ape init` It should test the creation of directories, config.yaml, and .gitginore: contracts