Skip to content

Commit

Permalink
fix accounts inject
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslopezf committed Oct 22, 2024
1 parent 203ea9a commit 05b118a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions simapp/simd/cmd/root_di.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import (
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"cosmossdk.io/simapp"
basedepinject "cosmossdk.io/x/accounts/defaults/base/depinject"
lockupdepinject "cosmossdk.io/x/accounts/defaults/lockup/depinject"
multisigdepinject "cosmossdk.io/x/accounts/defaults/multisig/depinject"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/config"
Expand All @@ -42,6 +45,12 @@ func NewRootCmd() *cobra.Command {
depinject.Supply(log.NewNopLogger()),
depinject.Provide(
ProvideClientContext,
multisigdepinject.ProvideAccount,
basedepinject.ProvideAccount,
lockupdepinject.ProvideAllLockupAccounts,

// provide base account options
basedepinject.ProvideSecp256K1PubKey,
),
),
&autoCliOpts,
Expand Down
1 change: 1 addition & 0 deletions x/accounts/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

gogoproto "github.com/cosmos/gogoproto/proto"

_ "cosmossdk.io/api/cosmos/accounts/defaults/base/v1" // import for side-effects
"cosmossdk.io/collections"
"cosmossdk.io/core/address"
"cosmossdk.io/core/appmodule"
Expand Down

0 comments on commit 05b118a

Please sign in to comment.