Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Sep 19, 2024
1 parent b41db40 commit e843c72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/accounts/defaults/base/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (a Account) AuthRetroCompatibility(ctx context.Context, _ *authtypes.QueryL

return &authtypes.QueryLegacyAccountResponse{
Account: baseAccountAny,
Info: baseAccount,
Base: baseAccount,
}, nil
}

Expand Down
4 changes: 2 additions & 2 deletions x/auth/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ func (s queryServer) AccountInfo(ctx context.Context, req *types.QueryAccountInf
xAccount, err := s.getFromXAccounts(ctx, addr)
// account info is nil it means that the account can be encapsulated into a
// legacy account representation but not a base account one.
if err != nil || xAccount.Info == nil {
if err != nil || xAccount.Base == nil {
return nil, status.Errorf(codes.NotFound, "account %s not found", req.Address)
}
return &types.QueryAccountInfoResponse{Info: xAccount.Info}, nil
return &types.QueryAccountInfoResponse{Info: xAccount.Base}, nil
}

// if there is no public key, avoid serializing the nil value
Expand Down
4 changes: 2 additions & 2 deletions x/validate/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ import (
const flagMinGasPricesV2 = "server.minimum-gas-prices"

func init() {
appconfig.RegisterModule(&modulev1.Config{},
appconfig.RegisterModule(&modulev1.Module{},
appconfig.Provide(ProvideModule),
)
}

type ModuleInputs struct {
depinject.In

Config *modulev1.Config
ModuleConfig *modulev1.Module
Codec codec.Codec
ProtoFileResolver txsigning.ProtoFileResolver
Environment appmodulev2.Environment
Expand Down

0 comments on commit e843c72

Please sign in to comment.