Skip to content
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

chore: fix spelling errors #2

Open
wants to merge 1 commit into
base: main
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 docs/rfc/rfc-003-crosslang.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ These bytes can be used by the **state handler** to determine what type of state

A **state token** is an opaque array of 32-bytes that is passed in each message request.
The hypervisor has no knowledge of what this token represents or how it is created,
but it is expected that modules that mange state do understand this token and use it to manage all state changes
but it is expected that modules that manage state do understand this token and use it to manage all state changes
in consistent transactions.
All side effects regarding state, events, etc. are expected to coordinate around the usage of this token.
It is possible that state modules expose methods for creating new **state tokens**
Expand Down
2 changes: 1 addition & 1 deletion docs/user/run-node/01-run-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Local state sync work similar to normal state sync except that it works off a lo

1. As mentioned in https://docs.cometbft.com/v0.37/core/state-sync, one must set a height and hash in the config.toml along with a few rpc servers (the afromentioned link has instructions on how to do this).
2. Run `<appd snapshot restore <height> <format>` to restore a local snapshot (note: first load it from a file with the *load* command).
3. Bootsrapping Comet state in order to start the node after the snapshot has been ingested. This can be done with the bootstrap command `<app> comet bootstrap-state`
3. Bootstrapping Comet state in order to start the node after the snapshot has been ingested. This can be done with the bootstrap command `<app> comet bootstrap-state`

### Snapshots Commands

Expand Down
6 changes: 3 additions & 3 deletions orm/internal/codegen/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func ORMPluginRunner(p *protogen.Plugin) error {
continue
}

if !hasTables(f) {
if !hashtables(f) {
continue
}

Expand All @@ -52,7 +52,7 @@ func QueryProtoPluginRunner(p *protogen.Plugin) error {
continue
}

if !hasTables(f) {
if !hashtables(f) {
continue
}

Expand All @@ -76,7 +76,7 @@ func QueryProtoPluginRunner(p *protogen.Plugin) error {
return nil
}

func hasTables(file *protogen.File) bool {
func hashtables(file *protogen.File) bool {
for _, message := range file.Messages {
if proto.GetExtension(message.Desc.Options(), ormv1.E_Table).(*ormv1.TableDescriptor) != nil {
return true
Expand Down
2 changes: 1 addition & 1 deletion simapp/v2/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// ExportAppStateAndValidators exports the state of the application for a genesis
// file.
// This is a demonstation of how to export a genesis file. Export may need extended at
// This is a demonstration of how to export a genesis file. Export may need extended at
// the user discretion for cleaning the genesis state at the end provided with jailAllowedAddrs
// Same applies for forZeroHeight preprocessing.
func (app *SimApp[T]) ExportAppStateAndValidators(
Expand Down
4 changes: 2 additions & 2 deletions simsx/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ func (c *ChainDataSource) AccountsCount() int {
return len(c.accounts)
}

// AccountAt return SimAccount within the accounts slice. Reporter skip flag is set when boundaries are exceeded.
// accountant return SimAccount within the accounts slice. Reporter skip flag is set when boundaries are exceeded.

func (c *ChainDataSource) AccountAt(reporter SimulationReporter, i int) SimAccount {
func (c *ChainDataSource) accountant(reporter SimulationReporter, i int) SimAccount {
if i > len(c.accounts) {
reporter.Skipf("account index out of range: %d", i)
return c.nullAccount()
Expand Down
20 changes: 10 additions & 10 deletions tests/integration/v2/distribution/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {

var (
req *types.QueryValidatorSlashesRequest
expRes *types.QueryValidatorSlashesResponse
express *types.QueryValidatorSlashesResponse
)

testCases := []struct {
Expand All @@ -220,7 +220,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {
name: "empty request",
malleate: func() {
req = &types.QueryValidatorSlashesRequest{}
expRes = &types.QueryValidatorSlashesResponse{}
express = &types.QueryValidatorSlashesResponse{}
},
expPass: false,
expErrMsg: "empty validator address",
Expand All @@ -233,7 +233,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {
StartingHeight: 10,
EndingHeight: 1,
}
expRes = &types.QueryValidatorSlashesResponse{Pagination: &query.PageResponse{}}
express = &types.QueryValidatorSlashesResponse{Pagination: &query.PageResponse{}}
},
expPass: false,
expErrMsg: "starting height greater than ending height",
Expand All @@ -246,7 +246,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {
StartingHeight: 1,
EndingHeight: 10,
}
expRes = &types.QueryValidatorSlashesResponse{Pagination: &query.PageResponse{}}
express = &types.QueryValidatorSlashesResponse{Pagination: &query.PageResponse{}}
},
expPass: true,
},
Expand All @@ -265,7 +265,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {
Pagination: pageReq,
}

expRes = &types.QueryValidatorSlashesResponse{
express = &types.QueryValidatorSlashesResponse{
Slashes: slashes[2:],
}
},
Expand All @@ -286,7 +286,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {
Pagination: pageReq,
}

expRes = &types.QueryValidatorSlashesResponse{
express = &types.QueryValidatorSlashesResponse{
Slashes: slashes[:3],
}
},
Expand All @@ -307,7 +307,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {
Pagination: pageReq,
}

expRes = &types.QueryValidatorSlashesResponse{
express = &types.QueryValidatorSlashesResponse{
Slashes: slashes[:4],
}
},
Expand All @@ -324,7 +324,7 @@ func TestGRPCValidatorSlashes(t *testing.T) {

if tc.expPass {
assert.NilError(t, err)
assert.DeepEqual(t, expRes.GetSlashes(), slashesRes.GetSlashes())
assert.DeepEqual(t, express.GetSlashes(), slashesRes.GetSlashes())
} else {
assert.ErrorContains(t, err, tc.expErrMsg)
assert.Assert(t, slashesRes == nil)
Expand Down Expand Up @@ -467,7 +467,7 @@ func TestGRPCDelegationRewards(t *testing.T) {
assert.NilError(t, f.distrKeeper.ValidatorCurrentRewards.Set(f.ctx, f.valAddr, currentRewards))
assert.NilError(t, f.distrKeeper.ValidatorOutstandingRewards.Set(f.ctx, f.valAddr, types.ValidatorOutstandingRewards{Rewards: decCoins}))

expRes := &types.QueryDelegationRewardsResponse{
express := &types.QueryDelegationRewardsResponse{
Rewards: sdk.DecCoins{sdk.DecCoin{Denom: sdk.DefaultBondDenom, Amount: math.LegacyNewDec(initialStake / 10)}},
}

Expand Down Expand Up @@ -528,7 +528,7 @@ func TestGRPCDelegationRewards(t *testing.T) {

if tc.expPass {
assert.NilError(t, err)
assert.DeepEqual(t, expRes, rewards)
assert.DeepEqual(t, express, rewards)
} else {
assert.ErrorContains(t, err, tc.expErrMsg)
assert.Assert(t, rewards == nil)
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/v2/gov/keeper/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestLegacyGRPCQueryTally(t *testing.T) {

var (
req *v1beta1.QueryTallyResultRequest
expRes *v1beta1.QueryTallyResultResponse
express *v1beta1.QueryTallyResultResponse
)

testCases := []struct {
Expand All @@ -43,7 +43,7 @@ func TestLegacyGRPCQueryTally(t *testing.T) {

req = &v1beta1.QueryTallyResultRequest{ProposalId: proposal.Id}

expRes = &v1beta1.QueryTallyResultResponse{
express = &v1beta1.QueryTallyResultResponse{
Tally: v1beta1.TallyResult{
Yes: math.NewInt(3 * 5 * 1000000),
No: math.NewInt(0),
Expand All @@ -65,7 +65,7 @@ func TestLegacyGRPCQueryTally(t *testing.T) {

if testCase.expPass {
assert.NilError(t, err)
assert.Equal(t, expRes.String(), tally.String())
assert.Equal(t, express.String(), tally.String())
} else {
assert.ErrorContains(t, err, testCase.expErrMsg)
assert.Assert(t, tally == nil)
Expand Down
2 changes: 1 addition & 1 deletion types/coin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (s *coinTestSuite) TestIsEqualCoin() {
}

func (s *coinTestSuite) TestCoinIsValid() {
loremIpsum := `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra dui vel nulla aliquet, non dictum elit aliquam. Proin consequat leo in consectetur mattis. Phasellus eget odio luctus, rutrum dolor at, venenatis ante. Praesent metus erat, sodales vitae sagittis eget, commodo non ipsum. Duis eget urna quis erat mattis pulvinar. Vivamus egestas imperdiet sem, porttitor hendrerit lorem pulvinar in. Vivamus laoreet sapien eget libero euismod tristique. Suspendisse tincidunt nulla quis luctus mattis.
loremIpsum := `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Name viverra dui vel nulla aliquet, non dictum elit aliquam. Proin consequat leo in consectetur mattis. Phasellus eget odio luctus, rutrum dolor at, venenatis ante. Praesent metus erat, sodales vitae sagittis eget, commodo non ipsum. Duis eget urna quis erat mattis pulvinar. Vivamus egestas imperdiet sem, porttitor hendrerit lorem pulvinar in. Vivamus laoreet sapien eget libero euismod tristique. Suspendisse tincidunt nulla quis luctus mattis.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed id turpis at erat placerat fermentum id sed sapien. Fusce mattis enim id nulla viverra, eget placerat eros aliquet. Nunc fringilla urna ac condimentum ultricies. Praesent in eros ac neque fringilla sodales. Donec ut venenatis eros. Quisque iaculis lectus neque, a various sem ullamcorper nec. Cras tincidunt dignissim libero nec volutpat. Donec molestie enim sed metus venenatis, quis elementum sem various. Curabitur eu venenatis nulla.
Cras sit amet ligula vel turpis placerat sollicitudin. Nunc massa odio, eleifend id lacus nec, ultricies elementum arcu. Donec imperdiet nulla lacus, a venenatis lacus fermentum nec. Proin vestibulum dolor enim, vitae posuere velit aliquet non. Suspendisse pharetra condimentum nunc tincidunt viverra. Etiam posuere, ligula ut maximus congue, mauris orci consectetur velit, vel finibus eros metus non tellus. Nullam et dictum metus. Aliquam maximus fermentum mauris elementum aliquet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam dapibus lectus sed tellus rutrum tincidunt. Nulla at dolor sem. Ut non dictum arcu, eget congue sem.`

Expand Down
Loading