From 473709f9521383bf7e4628ce61763d0bc105afdc Mon Sep 17 00:00:00 2001 From: jimmycathy Date: Sat, 4 May 2024 20:52:22 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: jimmycathy --- .../ElectionContract_Candidate.cs | 2 +- docs/protocol/blocks.md | 2 +- docs/resources/cli/methods.md | 12 ++++++------ docs/resources/smart-contract-apis/consensus.md | 6 +++--- docs/tutorials/__save.md | 2 +- .../first-contract-deploy.md | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/contract/AElf.Contracts.Election/ElectionContract_Candidate.cs b/contract/AElf.Contracts.Election/ElectionContract_Candidate.cs index d199cef7eb..ddf201a961 100644 --- a/contract/AElf.Contracts.Election/ElectionContract_Candidate.cs +++ b/contract/AElf.Contracts.Election/ElectionContract_Candidate.cs @@ -200,7 +200,7 @@ private void AddCandidateAsOption(string publicKey) State.VoteContract.Value = Context.GetContractAddressByName(SmartContractConstants.VoteContractSystemName); - // Add this candidate as an option for the the Voting Item. + // Add this candidate as an option for the Voting Item. State.VoteContract.AddOption.Send(new AddOptionInput { VotingItemId = State.MinerElectionVotingItemId.Value, diff --git a/docs/protocol/blocks.md b/docs/protocol/blocks.md index 081ea027ba..23aa72b7f1 100644 --- a/docs/protocol/blocks.md +++ b/docs/protocol/blocks.md @@ -29,7 +29,7 @@ message BlockBody { ``` -A block is the aggregation of a BlockHeader and a BlockBody. The header contains metadata about the block itself. It also contains the the merkle roots of both the transactions and the world state. The block body is used to contain the transaction ids that where included in this block by the miner. +A block is the aggregation of a BlockHeader and a BlockBody. The header contains metadata about the block itself. It also contains the merkle roots of both the transactions and the world state. The block body is used to contain the transaction ids that where included in this block by the miner. #### Block hash diff --git a/docs/resources/cli/methods.md b/docs/resources/cli/methods.md index be504feae3..cbddca732c 100644 --- a/docs/resources/cli/methods.md +++ b/docs/resources/cli/methods.md @@ -447,7 +447,7 @@ In this example, you can read the [protobuf file](https://github.com/AElfProject ```bash $ aelf-command send -✔ Enter the the URI of an AElf node … http://13.231.179.27:8000 +✔ Enter the URI of an AElf node … http://13.231.179.27:8000 ✔ Enter a valid wallet address, if you don't have, create one by aelf-command create … D3vSjRYL8MpeRpvUDy85ktXijnBe2tHn8NTACsggUVteQCNGP ✔ Enter the password you typed when creating a wallet … ******** ✔ Enter contract name (System contracts only) or the address of contract … AElf.ContractNames.Token @@ -485,7 +485,7 @@ aelf-command send AElf.ContractNames.Token Transfer '{"symbol": "ELF", "to": "C9 ```bash $ aelf-command call -✔ Enter the the URI of an AElf node … http://13.231.179.27:8000 +✔ Enter the URI of an AElf node … http://13.231.179.27:8000 ✔ Enter a valid wallet address, if you don't have, create one by aelf-command create … D3vSjRYL8MpeRpvUDy85ktXijnBe2tHn8NTACsggUVteQCNGP ✔ Enter the password you typed when creating a wallet … ******** ✔ Enter contract name (System contracts only) or the address of contract … AElf.ContractNames.Token @@ -547,7 +547,7 @@ $ aelf-command get-chain-status ```bash $ aelf-command get-tx-result -✔ Enter the the URI of an AElf node … http://13.231.179.27:8000 +✔ Enter the URI of an AElf node … http://13.231.179.27:8000 ✔ Enter a valid transaction id in hex format … 7b620a49ee9666c0c381fdb33f94bd31e1b5eb0fdffa081463c3954e9f734a02 ✔ Succeed! { TransactionId: @@ -577,7 +577,7 @@ $ aelf-command get-tx-result ```bash $ aelf-command get-blk-height -✔ Enter the the URI of an AElf node … http://13.231.179.27:8000 +✔ Enter the URI of an AElf node … http://13.231.179.27:8000 > 7902091 ``` @@ -587,7 +587,7 @@ You can pass a block height or a block hash to this sub-command. ```bash $ aelf-command get-blk-info -✔ Enter the the URI of an AElf node: http://13.231.179.27:8000 +✔ Enter the URI of an AElf node: http://13.231.179.27:8000 ✔ Enter a valid height or block hash: 123 ✔ Include transactions whether or not: no / yes { BlockHash: @@ -622,7 +622,7 @@ aelf-command get-blk-info ca61c7c8f5fc1bc8af0536bc9b51c61a94f39641a93a748e72802b ```bash $ aelf-command console -✔ Enter the the URI of an AElf node … http://13.231.179.27:8000 +✔ Enter the URI of an AElf node … http://13.231.179.27:8000 ✔ Enter a valid wallet address, if you don't have, create one by aelf-command create … 2Ue31YTuB5Szy7cnr3SCEGU2gtGi5uMQBYarYUR5oGin1sys6H ✔ Enter the password you typed when creating a wallet … ******** ✔ Succeed! diff --git a/docs/resources/smart-contract-apis/consensus.md b/docs/resources/smart-contract-apis/consensus.md index ae1ce2027a..82c9f6e3d0 100644 --- a/docs/resources/smart-contract-apis/consensus.md +++ b/docs/resources/smart-contract-apis/consensus.md @@ -115,7 +115,7 @@ message MinerInRound { - **term number**: the current term number. - **confirmed irreversible block height**: irreversible block height. - **confirmed irreversible block round number**: irreversible block round number. -- **is miner list just changed**: is miner list different from the the miner list in the previous round. +- **is miner list just changed**: is miner list different from the miner list in the previous round. - **round id for validation**: round id, calculated by summing block producers' expecting time (second). **MinerInRound**: @@ -170,7 +170,7 @@ Gets the current round's information. - **term number**: the current term number. - **confirmed irreversible block height**: irreversible block height. - **confirmed irreversible block round number**: irreversible block round number. -- **is miner list just changed**: is miner list different from the the miner list in the previous round. +- **is miner list just changed**: is miner list different from the miner list in the previous round. - **round id for validation**: round id, calculated by summing block producers' expecting time(second). **MinerInRound**: @@ -209,7 +209,7 @@ rpc GetPreviousRoundInformation (google.protobuf.Empty) returns (Round) {} - **term number**: the current term number. - **confirmed irreversible block height**: irreversible block height. - **confirmed irreversible block round number**: irreversible block round number. -- **is miner list just changed**: is miner list different from the the miner list in the previous round. +- **is miner list just changed**: is miner list different from the miner list in the previous round. - **round id for validation**: round id, calculated by summing block producers' expecting time(second). **MinerInRound**: diff --git a/docs/tutorials/__save.md b/docs/tutorials/__save.md index b09195b297..ee4b3e5989 100644 --- a/docs/tutorials/__save.md +++ b/docs/tutorials/__save.md @@ -2,7 +2,7 @@ ### Setup -To easily follow this tutorial you will need to open the the **AElf Boilerplate** root folder in Visual Studio Code and also open the **Integrated Terminal**. +To easily follow this tutorial you will need to open the **AElf Boilerplate** root folder in Visual Studio Code and also open the **Integrated Terminal**.

diff --git a/docs/tutorials/developing-smart-contracts/first-contract-deploy.md b/docs/tutorials/developing-smart-contracts/first-contract-deploy.md index 5ebdff253f..9c015382df 100644 --- a/docs/tutorials/developing-smart-contracts/first-contract-deploy.md +++ b/docs/tutorials/developing-smart-contracts/first-contract-deploy.md @@ -76,7 +76,7 @@ After adding these elements, Boilerplate will deploy your contract when the node ```bash aelf-command get-chain-status -? Enter the the URI of an AElf node: http://127.0.0.1:1235 +? Enter the URI of an AElf node: http://127.0.0.1:1235 ✔ Succeed { "ChainId": "AELF",