Skip to content

Commit 8bd86a0

Browse files
authored
chore(typo): multiple typos of different importance (#1974)
* Update distr_info.go * Update errors.go * Update genesis_test.go * Update msg_server_update_state_test.go * Update invariants.go
1 parent bc5fd38 commit 8bd86a0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

x/rollapp/genesis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
func TestInitExportGenesis(t *testing.T) {
1616
const (
1717
rollappID1 = "rollapp_1234-1"
18-
rollappID2 = "rollupp_1235-1"
18+
rollappID2 = "rollapp_1235-1"
1919
appID1 = "app1"
2020
appID2 = "app2"
2121
)

x/rollapp/keeper/invariants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func BlockHeightToFinalizationQueueInvariant(k Keeper) sdk.Invariant {
103103
latestFinalizedStateIdx, okLatestFinalized := k.GetLatestFinalizedStateIndex(ctx, rollapp.RollappId)
104104

105105
if !okLatest && okLatestFinalized {
106-
msg += fmt.Sprintf("rollapp (%s) has latest finalized ix but not lastest ix\n", rollapp.RollappId)
106+
msg += fmt.Sprintf("rollapp (%s) has latest finalized ix but not latest ix\n", rollapp.RollappId)
107107
broken = true
108108
continue
109109
}

x/rollapp/keeper/msg_server_update_state_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func (s *RollappTestSuite) TestUpdateStateDowngradeTimestamp() {
304304
}
305305

306306
// ---------------------------------------
307-
// verifyAll receives a list of expected results and a map of rollapId->rollapp
307+
// verifyAll receives a list of expected results and a map of rollappId->rollapp
308308
// the function verifies that the map contains all the rollapps that are in the list and only them
309309
func verifyAll(suite *RollappTestSuite, rollappsExpect []*types.RollappSummary, rollappsRes map[string]*types.RollappSummary) {
310310
// check number of items are equal

x/streamer/types/distr_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewDistrInfo(records []DistrRecord) (DistrInfo, error) {
2727
return distrInfo, nil
2828
}
2929

30-
// ValidateBasic is a basic validation test on recordd distribution gauges' weights.
30+
// ValidateBasic is a basic validation test on record distribution gauges' weights.
3131
func (r DistrRecord) ValidateBasic() error {
3232
if r.Weight.IsNegative() {
3333
return ErrDistrRecordNotPositiveWeight

x/streamer/types/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
errorsmod "cosmossdk.io/errors"
55
)
66

7-
// The following regiisters various lockdrop errors.
7+
// The following registers various lockdrop errors.
88
var (
99
ErrNoGaugeIdExist = errorsmod.Register(ModuleName, 1, "no gauge id exist")
1010
ErrDistrRecordNotPositiveWeight = errorsmod.Register(ModuleName, 2, "weight in record should be non negative")

0 commit comments

Comments
 (0)