From 736cbca586fafe28da04ec6ad3577fb3554d631c Mon Sep 17 00:00:00 2001 From: Santala Date: Fri, 12 Jan 2024 19:21:11 +0700 Subject: [PATCH] fix some typos --- contracts/README.md | 2 +- contracts/src/exchanges/ekubo/launcher.cairo | 2 +- contracts/src/tests/fork_tests/utils.cairo | 2 +- contracts/src/tests/unit_tests/test_memecoin_erc20.cairo | 4 ++-- contracts/src/tests/unit_tests/test_unruggable_memecoin.cairo | 2 +- contracts/src/tests/unit_tests/utils.cairo | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/README.md b/contracts/README.md index 93405281..80ba17da 100644 --- a/contracts/README.md +++ b/contracts/README.md @@ -9,7 +9,7 @@ - [ ] Initial holders distribution safeguards - [ ] Limit initial holders to X addresses (with X small) - [ ] Limit the percentage of the total supply that can be distributed to initial holders -- [ ] Inital buys safeguards +- [ ] Initial buys safeguards - [ ] Limit the percentage of the total supply that can be bought in the first X blocks ## 🛠️ Build diff --git a/contracts/src/exchanges/ekubo/launcher.cairo b/contracts/src/exchanges/ekubo/launcher.cairo index 5d73767e..064dfe0a 100644 --- a/contracts/src/exchanges/ekubo/launcher.cairo +++ b/contracts/src/exchanges/ekubo/launcher.cairo @@ -259,7 +259,7 @@ mod EkuboLauncher { ); // Append the owner's position to storage. It can only be removed if the ownership - // is transfered. + // is transferred. let mut owner_positions = self.owner_to_positions.read(params.owner); owner_positions.append(id); diff --git a/contracts/src/tests/fork_tests/utils.cairo b/contracts/src/tests/fork_tests/utils.cairo index e66ca24d..f4fb9fee 100644 --- a/contracts/src/tests/fork_tests/utils.cairo +++ b/contracts/src/tests/fork_tests/utils.cairo @@ -114,7 +114,7 @@ fn deploy_memecoin_through_factory_with_owner( // Upon deployment, we mock the transaction_hash of the current tx. // This is because for each tx, we check during transfers whether a transfer already - // occured in the same tx. Rather than adding these lines in each test, we make it a default. + // occurred in the same tx. Rather than adding these lines in each test, we make it a default. let mut tx_info: TxInfoMock = Default::default(); tx_info.transaction_hash = Option::Some(1234); start_spoof(CheatTarget::One(memecoin_address), tx_info); diff --git a/contracts/src/tests/unit_tests/test_memecoin_erc20.cairo b/contracts/src/tests/unit_tests/test_memecoin_erc20.cairo index 0e1757eb..482369b6 100644 --- a/contracts/src/tests/unit_tests/test_memecoin_erc20.cairo +++ b/contracts/src/tests/unit_tests/test_memecoin_erc20.cairo @@ -150,7 +150,7 @@ mod erc20_entrypoints { let recipient_balance = memecoin.balanceOf(RECIPIENT()); assert(recipient_balance == 20, 'Invalid balance recipient'); - // Check allowance. Should be equal to initial supply - transfered amount. + // Check allowance. Should be equal to initial supply - transferred amount. let allowance = memecoin.allowance(*INITIAL_HOLDERS()[0], SPENDER()); assert(allowance == (DEFAULT_INITIAL_SUPPLY() - 20), 'Invalid allowance'); } @@ -205,7 +205,7 @@ mod erc20_entrypoints { let recipient_balance = memecoin.balanceOf(RECIPIENT()); assert(recipient_balance == 20, 'Invalid balance recipient'); - // Check allowance. Should be equal to initial supply - transfered amount. + // Check allowance. Should be equal to initial supply - transferred amount. let allowance = memecoin.allowance(*INITIAL_HOLDERS()[0], SPENDER()); assert(allowance == (DEFAULT_INITIAL_SUPPLY() - 20), 'Invalid allowance'); } diff --git a/contracts/src/tests/unit_tests/test_unruggable_memecoin.cairo b/contracts/src/tests/unit_tests/test_unruggable_memecoin.cairo index 9acd8ed8..c18d5c9d 100644 --- a/contracts/src/tests/unit_tests/test_unruggable_memecoin.cairo +++ b/contracts/src/tests/unit_tests/test_unruggable_memecoin.cairo @@ -325,7 +325,7 @@ mod memecoin_internals { /// pre launch holder number should not change when /// transfer is done to recipient(s) who already have tokens - /// to test this, we are going to continously self transfer tokens + /// to test this, we are going to continuously self transfer tokens /// and ensure that we can transfer more than `MAX_HOLDERS_BEFORE_LAUNCH` times let (memecoin, memecoin_address) = deploy_memecoin_through_factory(); diff --git a/contracts/src/tests/unit_tests/utils.cairo b/contracts/src/tests/unit_tests/utils.cairo index e4eed8b0..93f6c236 100644 --- a/contracts/src/tests/unit_tests/utils.cairo +++ b/contracts/src/tests/unit_tests/utils.cairo @@ -242,7 +242,7 @@ fn deploy_memecoin_through_factory_with_owner( // Upon deployment, we mock the transaction_hash of the current tx. // This is because for each tx, we check during transfers whether a transfer already - // occured in the same tx. Rather than adding these lines in each test, we make it a default. + // occurred in the same tx. Rather than adding these lines in each test, we make it a default. let mut tx_info: TxInfoMock = Default::default(); tx_info.transaction_hash = Option::Some(1234); snforge_std::start_spoof(CheatTarget::One(memecoin_address), tx_info);