style: enable strict gofumpt (#15579)
This commit is contained in:
@@ -192,7 +192,7 @@ func (suite *AnteTestSuite) RunTestCase(t *testing.T, tc TestCase, args TestCase
|
||||
// CreateTestTx is a helper function to create a tx given multiple inputs.
|
||||
func (suite *AnteTestSuite) CreateTestTx(
|
||||
ctx sdk.Context, privs []cryptotypes.PrivKey,
|
||||
accNums []uint64, accSeqs []uint64,
|
||||
accNums, accSeqs []uint64,
|
||||
chainID string, signMode signing.SignMode,
|
||||
) (xauthsigning.Tx, error) {
|
||||
// First round: we gather all the signer infos. We use the "set empty
|
||||
|
||||
@@ -54,7 +54,7 @@ func TxValidateSignaturesExec(clientCtx client.Context, filename string) (testut
|
||||
return clitestutil.ExecTestCLICmd(clientCtx, cli.GetValidateSignaturesCommand(), args)
|
||||
}
|
||||
|
||||
func TxMultiSignExec(clientCtx client.Context, from string, filename string, extraArgs ...string) (testutil.BufferWriter, error) {
|
||||
func TxMultiSignExec(clientCtx client.Context, from, filename string, extraArgs ...string) (testutil.BufferWriter, error) {
|
||||
args := []string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagChainID, clientCtx.ChainID),
|
||||
filename,
|
||||
@@ -97,7 +97,7 @@ func QueryAccountExec(clientCtx client.Context, address fmt.Stringer, extraArgs
|
||||
return clitestutil.ExecTestCLICmd(clientCtx, cli.GetAccountCmd(), append(args, extraArgs...))
|
||||
}
|
||||
|
||||
func TxMultiSignBatchExec(clientCtx client.Context, filename string, from string, sigFile1 string, sigFile2 string, extraArgs ...string) (testutil.BufferWriter, error) {
|
||||
func TxMultiSignBatchExec(clientCtx client.Context, filename, from, sigFile1, sigFile2 string, extraArgs ...string) (testutil.BufferWriter, error) {
|
||||
args := []string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagKeyringBackend, keyring.BackendTest),
|
||||
filename,
|
||||
|
||||
@@ -80,7 +80,7 @@ var _ AccountKeeperI = &AccountKeeper{}
|
||||
// may use auth.Keeper to access the accounts permissions map.
|
||||
func NewAccountKeeper(
|
||||
cdc codec.BinaryCodec, storeService store.KVStoreService, proto func() sdk.AccountI,
|
||||
maccPerms map[string][]string, bech32Prefix string, authority string,
|
||||
maccPerms map[string][]string, bech32Prefix, authority string,
|
||||
) AccountKeeper {
|
||||
permAddrs := make(map[string]types.PermissionsForAddress)
|
||||
for name, perms := range maccPerms {
|
||||
|
||||
@@ -641,7 +641,7 @@ func TestMigrateVestingAccounts(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func trackingCorrected(ctx sdk.Context, t *testing.T, ak keeper.AccountKeeper, addr sdk.AccAddress, expDelVesting sdk.Coins, expDelFree sdk.Coins) {
|
||||
func trackingCorrected(ctx sdk.Context, t *testing.T, ak keeper.AccountKeeper, addr sdk.AccAddress, expDelVesting, expDelFree sdk.Coins) {
|
||||
t.Helper()
|
||||
baseAccount := ak.GetAccount(ctx, addr)
|
||||
vDA, ok := baseAccount.(exported.VestingAccount)
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func AssertError(t *testing.T, err error, expectedErr error, expectedErrMsg string) {
|
||||
func AssertError(t *testing.T, err, expectedErr error, expectedErrMsg string) {
|
||||
switch {
|
||||
case expectedErr != nil:
|
||||
require.ErrorIs(t, err, expectedErr)
|
||||
|
||||
@@ -55,7 +55,7 @@ func (m *ModuleCredential) Bytes() []byte {
|
||||
}
|
||||
|
||||
// VerifySignature returns always false, making the account unclaimable
|
||||
func (m *ModuleCredential) VerifySignature(_ []byte, _ []byte) bool {
|
||||
func (m *ModuleCredential) VerifySignature(_, _ []byte) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ import (
|
||||
// for creating vesting accounts with funds.
|
||||
type BankKeeper interface {
|
||||
IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
|
||||
SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
|
||||
SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error
|
||||
BlockedAddr(addr sdk.AccAddress) bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user