@@ -3,16 +3,14 @@ package app
33import (
44 "context"
55
6- "github.com/pkg/errors"
7- "github.com/spf13/viper"
8-
6+ sdk "github.com/cosmos/cosmos-sdk/types"
7+ "github.com/cosmos/cosmos-sdk/x/authz"
98 "github.com/gitopia/git-server/logger"
109 "github.com/gitopia/gitopia/x/gitopia/types"
10+ "github.com/pkg/errors"
11+ "github.com/spf13/viper"
1112 "github.com/tendermint/starport/starport/pkg/cosmosaccount"
1213 "github.com/tendermint/starport/starport/pkg/cosmosclient"
13-
14- sdk "github.com/cosmos/cosmos-sdk/types"
15- "github.com/cosmos/cosmos-sdk/x/authz"
1614)
1715
1816const (
@@ -37,7 +35,8 @@ func NewGitopiaClient(ctx context.Context, account string) (GitopiaClient, error
3735 client , err := cosmosclient .New (ctx ,
3836 cosmosclient .WithNodeAddress (viper .GetString ("tm_addr" )),
3937 //cosmosclient.WithKeyringServiceName("cosmos"), // not suported on macos
40- cosmosclient .WithKeyringBackend (cosmosaccount .KeyringOS ),
38+ cosmosclient .WithKeyringBackend (cosmosaccount .KeyringTest ),
39+ cosmosclient .WithHome (viper .GetString ("keyring_dir" )),
4140 cosmosclient .WithAddressPrefix (GITOPIA_ACC_ADDRESS_PREFIX ),
4241 )
4342 if err != nil {
0 commit comments