x/auth: remove alias.go usage (#6440)
* x/auth: remove alias.go usage * Fix simd_test.go and formatting * Fix app.go formatting * Fix cli_test.go * Fix lint warnings * Undo accidental deletion during merge Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
colin axner
Federico Kunze
parent
eb3f7e6473
commit
32278d9a2b
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
||||
"github.com/cosmos/cosmos-sdk/tests"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -191,7 +191,7 @@ func AddFlags(cmd string, flags []string) string {
|
||||
return strings.TrimSpace(cmd)
|
||||
}
|
||||
|
||||
func UnmarshalStdTx(t require.TestingT, c *codec.Codec, s string) (stdTx auth.StdTx) {
|
||||
func UnmarshalStdTx(t require.TestingT, c *codec.Codec, s string) (stdTx authtypes.StdTx) {
|
||||
require.Nil(t, c.UnmarshalJSON([]byte(s), &stdTx))
|
||||
return
|
||||
}
|
||||
@@ -200,7 +200,7 @@ func buildEventsQueryString(events []string) string {
|
||||
return strings.Join(events, "&")
|
||||
}
|
||||
|
||||
func MarshalStdTx(t require.TestingT, c *codec.Codec, stdTx auth.StdTx) []byte {
|
||||
func MarshalStdTx(t require.TestingT, c *codec.Codec, stdTx authtypes.StdTx) []byte {
|
||||
bz, err := c.MarshalBinaryBare(stdTx)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/std"
|
||||
"github.com/cosmos/cosmos-sdk/tests/cli"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
)
|
||||
|
||||
@@ -102,7 +102,7 @@ func TestCLISimdAddGenesisAccount(t *testing.T) {
|
||||
interfaceRegistry := codectypes.NewInterfaceRegistry()
|
||||
appCodec := std.NewAppCodec(f.Cdc, interfaceRegistry)
|
||||
|
||||
accounts := auth.GetGenesisStateFromAppState(appCodec, genesisState).Accounts
|
||||
accounts := authtypes.GetGenesisStateFromAppState(appCodec, genesisState).Accounts
|
||||
balances := banktypes.GetGenesisStateFromAppState(f.Cdc, genesisState).Balances
|
||||
balancesSet := make(map[string]sdk.Coins)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user