Skip to content

Commit

Permalink
docs: correct Continous spelling to Continuous (#22880)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilasxie authored Dec 16, 2024
1 parent 6500a72 commit 5761530
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions x/accounts/defaults/lockup/continuous_locking_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

func setupContinousAccount(t *testing.T, ctx context.Context, ss store.KVStoreService) *ContinuousLockingAccount {
func setupContinuousAccount(t *testing.T, ctx context.Context, ss store.KVStoreService) *ContinuousLockingAccount {
t.Helper()
deps := makeMockDependencies(ss)
owner := "owner" //nolint:goconst // adding constants for this would impede readability
Expand All @@ -33,13 +33,13 @@ func setupContinousAccount(t *testing.T, ctx context.Context, ss store.KVStoreSe
return acc
}

func TestContinousAccountDelegate(t *testing.T) {
func TestContinuousAccountDelegate(t *testing.T) {
ctx, ss := newMockContext(t)
sdkCtx := sdk.NewContext(nil, true, log.NewNopLogger()).WithContext(ctx).WithHeaderInfo(header.Info{
Time: time.Now(),
})

acc := setupContinousAccount(t, sdkCtx, ss)
acc := setupContinuousAccount(t, sdkCtx, ss)
_, err := acc.Delegate(sdkCtx, &lockuptypes.MsgDelegate{
Sender: "owner",
ValidatorAddress: "val_address",
Expand Down Expand Up @@ -75,13 +75,13 @@ func TestContinousAccountDelegate(t *testing.T) {
require.True(t, delFree.Equal(math.NewInt(1)))
}

func TestContinousAccountUndelegate(t *testing.T) {
func TestContinuousAccountUndelegate(t *testing.T) {
ctx, ss := newMockContext(t)
sdkCtx := sdk.NewContext(nil, true, log.NewNopLogger()).WithContext(ctx).WithHeaderInfo(header.Info{
Time: time.Now(),
})

acc := setupContinousAccount(t, sdkCtx, ss)
acc := setupContinuousAccount(t, sdkCtx, ss)
// Delegate first
_, err := acc.Delegate(sdkCtx, &lockuptypes.MsgDelegate{
Sender: "owner",
Expand Down Expand Up @@ -146,13 +146,13 @@ func TestContinousAccountUndelegate(t *testing.T) {
require.True(t, delFree.Equal(math.ZeroInt()))
}

func TestContinousAccountSendCoins(t *testing.T) {
func TestContinuousAccountSendCoins(t *testing.T) {
ctx, ss := newMockContext(t)
sdkCtx := sdk.NewContext(nil, true, log.NewNopLogger()).WithContext(ctx).WithHeaderInfo(header.Info{
Time: time.Now(),
})

acc := setupContinousAccount(t, sdkCtx, ss)
acc := setupContinuousAccount(t, sdkCtx, ss)
_, err := acc.SendCoins(sdkCtx, &lockuptypes.MsgSend{
Sender: "owner",
ToAddress: "receiver",
Expand All @@ -176,13 +176,13 @@ func TestContinousAccountSendCoins(t *testing.T) {
require.NoError(t, err)
}

func TestContinousAccountWithdrawUnlockedCoins(t *testing.T) {
func TestContinuousAccountWithdrawUnlockedCoins(t *testing.T) {
ctx, ss := newMockContext(t)
sdkCtx := sdk.NewContext(nil, true, log.NewNopLogger()).WithContext(ctx).WithHeaderInfo(header.Info{
Time: time.Now(),
})

acc := setupContinousAccount(t, sdkCtx, ss)
acc := setupContinuousAccount(t, sdkCtx, ss)
_, err := acc.WithdrawUnlockedCoins(sdkCtx, &lockuptypes.MsgWithdraw{
Withdrawer: "owner",
ToAddress: "receiver",
Expand All @@ -206,13 +206,13 @@ func TestContinousAccountWithdrawUnlockedCoins(t *testing.T) {
require.NoError(t, err)
}

func TestContinousAccountGetLockCoinInfo(t *testing.T) {
func TestContinuousAccountGetLockCoinInfo(t *testing.T) {
ctx, ss := newMockContext(t)
sdkCtx := sdk.NewContext(nil, true, log.NewNopLogger()).WithContext(ctx).WithHeaderInfo(header.Info{
Time: time.Now(),
})

acc := setupContinousAccount(t, sdkCtx, ss)
acc := setupContinuousAccount(t, sdkCtx, ss)

unlocked, locked, err := acc.GetLockCoinsInfo(sdkCtx, time.Now())
require.NoError(t, err)
Expand Down

0 comments on commit 5761530

Please sign in to comment.