Skip to content

Commit 05ca9dc

Browse files
authored
Merge branch 'main' into patch-1
2 parents 23607d7 + 6434818 commit 05ca9dc

File tree

23 files changed

+28
-28
lines changed

23 files changed

+28
-28
lines changed

server/mock/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (kv kvStore) Prefix(prefix []byte) storetypes.KVStore {
221221
}
222222

223223
func (kv kvStore) Gas(meter storetypes.GasMeter, config storetypes.GasConfig) storetypes.KVStore {
224-
panic("not implmeneted")
224+
panic("not implemented")
225225
}
226226

227227
func (kv kvStore) Iterator(start, end []byte) storetypes.Iterator {

server/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra
969969
return nil, err
970970
}
971971

972-
// Modfiy Validators stateDB entry.
972+
// Modify Validators stateDB entry.
973973
err = stateDB.Set(fmt.Appendf(nil, "validatorsKey:%v", blockStore.Height()), buf)
974974
if err != nil {
975975
return nil, err

server/types/abci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ type ABCI interface {
3333
ListSnapshots(*abci.ListSnapshotsRequest) (*abci.ListSnapshotsResponse, error) // List available snapshots
3434
OfferSnapshot(*abci.OfferSnapshotRequest) (*abci.OfferSnapshotResponse, error) // Offer a snapshot to the application
3535
LoadSnapshotChunk(*abci.LoadSnapshotChunkRequest) (*abci.LoadSnapshotChunkResponse, error) // Load a snapshot chunk
36-
ApplySnapshotChunk(*abci.ApplySnapshotChunkRequest) (*abci.ApplySnapshotChunkResponse, error) // Apply a shapshot chunk
36+
ApplySnapshotChunk(*abci.ApplySnapshotChunkRequest) (*abci.ApplySnapshotChunkResponse, error) // Apply a snapshot chunk
3737
}

tests/e2e/distribution/grpc_query_suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (s *GRPCQueryTestSuite) SetupSuite() {
4545
s.Require().NoError(s.network.WaitForNextBlock())
4646
}
4747

48-
// TearDownSuite cleans up the curret test network after _each_ test.
48+
// TearDownSuite cleans up the current test network after _each_ test.
4949
func (s *GRPCQueryTestSuite) TearDownSuite() {
5050
s.T().Log("tearing down grpc e2e test suite")
5151
s.network.Cleanup()

tests/e2e/distribution/suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (s *E2ETestSuite) SetupSuite() {
123123
s.Require().NoError(s.network.WaitForNextBlock())
124124
}
125125

126-
// TearDownSuite cleans up the curret test network after _each_ test.
126+
// TearDownSuite cleans up the current test network after _each_ test.
127127
func (s *E2ETestSuite) TearDownSuite() {
128128
s.T().Log("tearing down e2e test suite1")
129129
s.network.Cleanup()

tests/e2e/distribution/withdraw_all_suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (s *WithdrawAllTestSuite) SetupSuite() {
4646
s.Require().NoError(s.network.WaitForNextBlock())
4747
}
4848

49-
// TearDownSuite cleans up the curret test network after _each_ test.
49+
// TearDownSuite cleans up the current test network after _each_ test.
5050
func (s *WithdrawAllTestSuite) TearDownSuite() {
5151
s.T().Log("tearing down withdraw all e2e test suite")
5252
s.network.Cleanup()

tests/integration/staking/keeper/validator_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ func TestApplyAndReturnValidatorSetUpdatesInserted(t *testing.T) {
645645
validators[1] = keeper.TestingUpdateValidator(f.stakingKeeper, f.sdkCtx, validators[1], false)
646646
applyValidatorSetUpdates(t, f.sdkCtx, f.stakingKeeper, 2)
647647

648-
// test validtor added at the beginning
648+
// test validator added at the beginning
649649
// tendermintUpdate set: {} -> {c0}
650650
assert.NilError(t, f.stakingKeeper.SetValidator(f.sdkCtx, validators[2]))
651651
assert.NilError(t, f.stakingKeeper.SetValidatorByPowerIndex(f.sdkCtx, validators[2]))
@@ -655,7 +655,7 @@ func TestApplyAndReturnValidatorSetUpdatesInserted(t *testing.T) {
655655
validators[2], _ = f.stakingKeeper.GetValidator(f.sdkCtx, val2bz)
656656
assert.DeepEqual(t, validators[2].ABCIValidatorUpdate(f.stakingKeeper.PowerReduction(f.sdkCtx)), updates[0])
657657

658-
// test validtor added at the beginning
658+
// test validator added at the beginning
659659
// tendermintUpdate set: {} -> {c0}
660660
assert.NilError(t, f.stakingKeeper.SetValidator(f.sdkCtx, validators[3]))
661661
assert.NilError(t, f.stakingKeeper.SetValidatorByPowerIndex(f.sdkCtx, validators[3]))
@@ -665,7 +665,7 @@ func TestApplyAndReturnValidatorSetUpdatesInserted(t *testing.T) {
665665
validators[3], _ = f.stakingKeeper.GetValidator(f.sdkCtx, val3bz)
666666
assert.DeepEqual(t, validators[3].ABCIValidatorUpdate(f.stakingKeeper.PowerReduction(f.sdkCtx)), updates[0])
667667

668-
// test validtor added at the end
668+
// test validator added at the end
669669
// tendermintUpdate set: {} -> {c0}
670670
assert.NilError(t, f.stakingKeeper.SetValidator(f.sdkCtx, validators[4]))
671671
assert.NilError(t, f.stakingKeeper.SetValidatorByPowerIndex(f.sdkCtx, validators[4]))

types/address.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ func (ca ConsAddress) String() string {
641641
}
642642

643643
// Bech32ifyAddressBytes returns a bech32 representation of address bytes.
644-
// Returns an empty sting if the byte slice is 0-length. Returns an error if the bech32 conversion
644+
// Returns an empty string if the byte slice is 0-length. Returns an error if the bech32 conversion
645645
// fails or the prefix is empty.
646646
func Bech32ifyAddressBytes(prefix string, bs []byte) (string, error) {
647647
if len(bs) == 0 {
@@ -654,7 +654,7 @@ func Bech32ifyAddressBytes(prefix string, bs []byte) (string, error) {
654654
}
655655

656656
// MustBech32ifyAddressBytes returns a bech32 representation of address bytes.
657-
// Returns an empty sting if the byte slice is 0-length. It panics if the bech32 conversion
657+
// Returns an empty string if the byte slice is 0-length. It panics if the bech32 conversion
658658
// fails or the prefix is empty.
659659
func MustBech32ifyAddressBytes(prefix string, bs []byte) string {
660660
s, err := Bech32ifyAddressBytes(prefix, bs)

x/staking/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ When a Validator is slashed, the following occurs:
468468
redelegation began from the validator are slashed by the `slashFactor` percentage of the initialBalance.
469469
* Each amount slashed from redelegations and unbonding delegations is subtracted from the
470470
total slash amount.
471-
* The `remaingSlashAmount` is then slashed from the validator's tokens in the `BondedPool` or
471+
* The `remainingSlashAmount` is then slashed from the validator's tokens in the `BondedPool` or
472472
`NonBondedPool` depending on the validator's status. This reduces the total supply of tokens.
473473

474474
In the case of a slash due to any infraction that requires evidence to submitted (for example double-sign), the slash
@@ -2312,7 +2312,7 @@ A user can query the `staking` module using REST endpoints.
23122312

23132313
#### DelegatorDelegations
23142314

2315-
The `DelegtaorDelegations` REST endpoint queries all delegations of a given delegator address.
2315+
The `DelegatorDelegations` REST endpoint queries all delegations of a given delegator address.
23162316

23172317
```bash
23182318
/cosmos/staking/v1beta1/delegations/{delegatorAddr}

x/staking/autocli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
4343
{
4444
RpcMethod: "ValidatorUnbondingDelegations",
4545
Use: "unbonding-delegations-from [validator-addr]",
46-
Short: "Query all unbonding delegatations from a validator",
46+
Short: "Query all unbonding delegations from a validator",
4747
Long: "Query delegations that are unbonding _from_ a validator.",
4848
Example: fmt.Sprintf("$ %s query staking unbonding-delegations-from [val-addr]", version.AppName),
4949
PositionalArgs: []*autocliv1.PositionalArgDescriptor{

0 commit comments

Comments
 (0)