Skip to content

chore: fix some minor issues in the comments #4667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action/claimreward.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func NewClaimFromRewardingFund(amount *big.Int,
// note that this amount won't be charged/deducted from sender
func (c *ClaimFromRewardingFund) ClaimAmount() *big.Int { return c.amount }

// Address returns the the account to claim
// Address returns the account to claim
// if it's nil, the default is the action sender
func (c *ClaimFromRewardingFund) Address() address.Address { return c.address }

Expand Down
2 changes: 1 addition & 1 deletion action/protocol/execution/evm/evmstatedbadapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ func (stateDB *StateDBAdapter) AddSlotToAccessList(addr common.Address, slot com
stateDB.accessList.AddSlot(addr, slot)
}

// Empty returns true if the the contract is empty
// Empty returns true if the contract is empty
func (stateDB *StateDBAdapter) Empty(evmAddr common.Address) bool {
log.T(stateDB.ctx).Debug("Check whether the contract is empty.")
s, err := stateDB.accountState(evmAddr)
Expand Down
2 changes: 1 addition & 1 deletion action/protocol/rewarding/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (b rewardHistory) Serialize() ([]byte, error) {
// Deserialize deserializes bytes into reward history state
func (b *rewardHistory) Deserialize(data []byte) error { return nil }

// rewardHistory stores the unclaimed balance of an account
// rewardAccount stores the unclaimed balance of an account
type rewardAccount struct {
balance *big.Int
}
Expand Down
2 changes: 1 addition & 1 deletion blockchain/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ type (
// 3. fix gas and nonce update
// 4. fix unproductive delegates in staking protocol
OkhotskBlockHeight uint64 `yaml:"okhotskHeight"`
// PalauBlockHeight is the the start height to
// PalauBlockHeight is the start height to
// 1. enable rewarding action via web3
// 2. broadcast node info into the p2p network
PalauBlockHeight uint64 `yaml:"palauHeight"`
Expand Down
2 changes: 1 addition & 1 deletion blockchain/integrity/integrity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ func TestHistoryForContract(t *testing.T) {
require.True(ok)
require.Equal(expect, balance)

// check the the original balance again
// check the original balance again
_, err = sf.WorkingSetAtHeight(ctx, bc.TipHeight()-1)
require.NoError(err)
}
Expand Down
2 changes: 1 addition & 1 deletion consensus/scheme/rolldpos/rolldpos.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (r *RollDPoS) CurrentState() fsm.State {
}

// Activate activates or pauses the roll-DPoS consensus. When it is deactivated, the node will finish the current
// consensus round if it is doing the work and then return the the initial state
// consensus round if it is doing the work and then return the initial state
func (r *RollDPoS) Activate(active bool) {
r.ctx.Activate(active)
// reactivate cfsm if the node is reactivated
Expand Down
4 changes: 2 additions & 2 deletions e2etest/local_transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type AccountState int
const (
//This account should be created on blockchain in run time with the given balance
AcntCreate AccountState = iota
//This account already exist, need to load the the key, address, balance to this test case
//This account already exist, need to load the key, address, balance to this test case
AcntExist
//This account doesnt exist on blockchain, but have a valid key and address
AcntNotRegistered
Expand Down Expand Up @@ -526,7 +526,7 @@ func TestLocalTransfer(t *testing.T) {

// initStateKeyAddr, if the given private key is nil,
// creates key, address, and init the new account with given balance
// otherwise, calculate the the address, and load test with existing
// otherwise, calculate the address, and load test with existing
// balance state.
func initStateKeyAddr(
accountState AccountState,
Expand Down
2 changes: 1 addition & 1 deletion ioctl/doc/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/spf13/cobra"
)

// GenMarkdownTreeCustom is the the same as GenMarkdownTree, but
// GenMarkdownTreeCustom is the same as GenMarkdownTree, but
// with custom filePrepender and linkHandler.
func GenMarkdownTreeCustom(c *cobra.Command, dir string, name string, path string, filePrepender func(string) string,
linkHandler func(*cobra.Command, string) string) (err error) {
Expand Down