Skip to content

Commit

Permalink
chore: spelling errors fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-merge-queue[bot] authored and github-actions[bot] committed Jan 15, 2025
1 parent 69defb4 commit 9135664
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 73 deletions.
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
4 changes: 2 additions & 2 deletions simsx/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,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 tests/systemtests/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestGRPC(t *testing.T) {
require.Greater(t, len(services), 0)
require.Contains(t, services, "cosmos.staking.v1beta1.Query")

// test query invokation
// test query invocation
rf, formatter, err := grpcurl.RequestParserAndFormatter(grpcurl.FormatText, descSource, os.Stdin, grpcurl.FormatOptions{})
require.NoError(t, err)

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

0 comments on commit 9135664

Please sign in to comment.