Skip to content

Commit

Permalink
chore: fix typos (#687)
Browse files Browse the repository at this point in the history
## Description

fix typos

---

### Author Checklist

*All items are required. Please add a note to the item if the item is
not applicable and
please add links to any relevant follow up issues.*

I have...

- [x] included the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch
- [ ] provided a link to the relevant issue or specification
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go
code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [x] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable
and please add
your handle next to the items reviewed if you only reviewed selected
items.*

I have...

- [ ] confirmed the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
  • Loading branch information
GoodDaisy authored and MonikaCat committed Feb 5, 2024
1 parent 4f30887 commit 7cafcca
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion database/staking_validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ ON CONFLICT (validator_address) DO UPDATE
WHERE validator_status.height <= excluded.height`
_, err = db.SQL.Exec(statusStmt, statusParams...)
if err != nil {
return fmt.Errorf("error while stroring validators statuses: %s", err)
return fmt.Errorf("error while storing validators statuses: %s", err)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion database/staking_validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ VALUES ('cosmosvalcons1qqqqrezrl53hujmpdch6d805ac75n220ku09rl',
func (suite *DbTestSuite) TestGetValidators() {
suite.getAccount("cosmos1z4hfrxvlgl4s8u4n5ngjcw8kdqrcv43599amxs")
suite.getAccount("cosmos184ma3twcfjqef6k95ne8w2hk80x2kah7vcwy4a")
// Inser the test data
// Insert the test data
queries := []string{
`INSERT INTO validator (consensus_address, consensus_pubkey) VALUES ('cosmosvalcons1qqqqrezrl53hujmpdch6d805ac75n220ku09rl', 'cosmosvalconspub1zcjduepq7mft6gfls57a0a42d7uhx656cckhfvtrlmw744jv4q0mvlv0dypskehfk8')`,
`INSERT INTO validator (consensus_address, consensus_pubkey) VALUES ('cosmosvalcons1qq92t2l4jz5pt67tmts8ptl4p0jhr6utx5xa8y', 'cosmosvalconspub1zcjduepqe93asg05nlnj30ej2pe3r8rkeryyuflhtfw3clqjphxn4j3u27msrr63nk')`,
Expand Down
2 changes: 1 addition & 1 deletion modules/actions/types/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewContext(node node.Node, sources *modulestypes.Sources) *Context {
}
}

// GetHeight uses the lastest height when the input height is empty from graphql request
// GetHeight uses the latest height when the input height is empty from graphql request
func (c *Context) GetHeight(payload *Payload) (int64, error) {
if payload == nil || payload.Input.Height == 0 {
latestHeight, err := c.node.LatestHeight()
Expand Down
2 changes: 1 addition & 1 deletion modules/consensus/handle_periodic_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (m *Module) updateBlockTimeInMinute() error {

minute, err := m.db.GetBlockHeightTimeMinuteAgo(block.Timestamp)
if err != nil {
return fmt.Errorf("error while gettting block height a minute ago: %s", err)
return fmt.Errorf("error while getting block height a minute ago: %s", err)
}
newBlockTime := block.Timestamp.Sub(minute.Timestamp).Seconds() / float64(block.Height-minute.Height)

Expand Down
2 changes: 1 addition & 1 deletion modules/distribution/handle_periodic_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (m *Module) RegisterPeriodicOperations(scheduler *gocron.Scheduler) error {
if _, err := scheduler.Every(1).Hour().Do(func() {
utils.WatchMethod(m.GetLatestCommunityPool)
}); err != nil {
return fmt.Errorf("error while scheduling distribution peridic operation: %s", err)
return fmt.Errorf("error while scheduling distribution periodic operation: %s", err)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion modules/distribution/source/remote/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Source struct {
distrClient distrtypes.QueryClient
}

// NewSource returns a new Source instace
// NewSource returns a new Source instance
func NewSource(source *remote.Source, distrClient distrtypes.QueryClient) *Source {
return &Source{
Source: source,
Expand Down
2 changes: 1 addition & 1 deletion modules/distribution/utils_community_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func (m *Module) updateCommunityPool(height int64) error {

pool, err := m.source.CommunityPool(height)
if err != nil {
return fmt.Errorf("error while getting comminity pool: %s", err)
return fmt.Errorf("error while getting community pool: %s", err)
}

// Store the pool into the database
Expand Down
2 changes: 1 addition & 1 deletion modules/mint/source/local/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Source struct {
querier minttypes.QueryServer
}

// NewSource returns a new Source instace
// NewSource returns a new Source instance
func NewSource(source *local.Source, querier minttypes.QueryServer) *Source {
return &Source{
Source: source,
Expand Down
2 changes: 1 addition & 1 deletion modules/pricefeed/coingecko/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func queryCoinGecko(endpoint string, ptr interface{}) error {

err = json.Unmarshal(bz, &ptr)
if err != nil {
return fmt.Errorf("error while unmarshaling response body: %s", err)
return fmt.Errorf("error while unmarshalling response body: %s", err)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion modules/staking/handle_genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json
var genState stakingtypes.GenesisState
err := m.cdc.UnmarshalJSON(appState[stakingtypes.ModuleName], &genState)
if err != nil {
return fmt.Errorf("error while unmarshaling staking state: %s", err)
return fmt.Errorf("error while unmarshalling staking state: %s", err)
}

// Save the params
Expand Down
2 changes: 1 addition & 1 deletion modules/staking/keybase/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func queryKeyBase(endpoint string, ptr interface{}) error {

err = json.Unmarshal(bz, &ptr)
if err != nil {
return fmt.Errorf("error while unmarshaling response body: %s", err)
return fmt.Errorf("error while unmarshalling response body: %s", err)
}

return nil
Expand Down

0 comments on commit 7cafcca

Please sign in to comment.