Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslopezf committed Oct 22, 2024
1 parent 2a44357 commit a6c8bc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tests/systemtests/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func TestAccountsMigration(t *testing.T) {

// 3. Now the account should be existed, query the account Sequence
rsp = cli.CustomQuery("q", "accounts", "query", legacyAddress, "cosmos.accounts.defaults.base.v1.QuerySequence", "{}")
sequence := gjson.Get(rsp, "sequence").Uint()
require.Equal(t, uint64(0), sequence)
sequence := gjson.Get(rsp, "sequence").Exists()
require.True(t, sequence, "Sequence field should exist")

// 4. Execute a transaction using the bank module

Expand Down
10 changes: 0 additions & 10 deletions x/accounts/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import (
"github.com/spf13/cobra"
"google.golang.org/grpc"

basev1 "cosmossdk.io/api/cosmos/accounts/defaults/base/v1"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/registry"
coretransaction "cosmossdk.io/core/transaction"
"cosmossdk.io/x/accounts/cli"
v1 "cosmossdk.io/x/accounts/v1"

Expand Down Expand Up @@ -51,14 +49,6 @@ func (AppModule) IsAppModule() {}
func (am AppModule) Name() string { return ModuleName }

func (AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar) {
registrar.RegisterImplementations((*coretransaction.Msg)(nil),
&basev1.MsgInit{},
&basev1.MsgSwapPubKey{},
&basev1.MsgSwapPubKeyResponse{},
&basev1.QuerySequence{},
&basev1.QuerySequenceResponse{},
)

msgservice.RegisterMsgServiceDesc(registrar, v1.MsgServiceDesc())
}

Expand Down

0 comments on commit a6c8bc1

Please sign in to comment.