Skip to content

Commit

Permalink
add logger to client
Browse files Browse the repository at this point in the history
  • Loading branch information
tpkeeper committed Sep 3, 2022
1 parent 765f1e8 commit 84e74d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions relay/cmd/multisig_transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ package cmd
import (
"encoding/json"
"fmt"
"os"
"path/filepath"

"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/cosmos/cosmos-sdk/types"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/stafihub/cosmos-relay-sdk/client"
"os"
"path/filepath"
"github.com/stafihub/rtoken-relay-core/common/log"
)

func multisigTransferCmd() *cobra.Command {
Expand Down Expand Up @@ -44,7 +46,7 @@ func multisigTransferCmd() *cobra.Command {
return err
}

cosmosClient, err := client.NewClient(key, config.MultisigAccountName, config.GasPrice, config.Prefix, []string{config.Endpoint})
cosmosClient, err := client.NewClient(key, config.MultisigAccountName, config.GasPrice, config.Prefix, []string{config.Endpoint}, log.NewLog("client"))
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions relay/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ require (
github.com/cosmos/ibc-go/v3 v3.1.1
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.5.0
github.com/stafihub/cosmos-relay-sdk v1.8.10
github.com/stafihub/cosmos-relay-sdk v1.9.0
github.com/stafihub/rtoken-relay-core/common v0.0.0-20220903031254-1efa646fb59e
github.com/stafihub/stafi-hub-relay-sdk v1.7.2
github.com/stafihub/stafi-hub-relay-sdk v1.8.0
github.com/stafihub/stafihub v0.1.0
)

Expand Down
8 changes: 4 additions & 4 deletions relay/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1091,14 +1091,14 @@ github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUs
github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ=
github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI=
github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I=
github.com/stafihub/cosmos-relay-sdk v1.8.10 h1:06Etz8jiE3lMVFsQBHSLaUuLYhR+tBPJt0dUsuuJBk0=
github.com/stafihub/cosmos-relay-sdk v1.8.10/go.mod h1:Ao+3mfK7e5XXXy0UmkWGvt28b7kHcKi5hOGPlnOLijY=
github.com/stafihub/cosmos-relay-sdk v1.9.0 h1:XWaqh8BHhanVC9N88IEA2KlfGqyTZv9w3KYd0QD2Bek=
github.com/stafihub/cosmos-relay-sdk v1.9.0/go.mod h1:Ao+3mfK7e5XXXy0UmkWGvt28b7kHcKi5hOGPlnOLijY=
github.com/stafihub/cosmos-sdk v0.45.6-stafihub-0.0.4 h1:lKHB+no1VR/AlfMl4t1lLH88eyRmrGIwom7Xo8fIXE8=
github.com/stafihub/cosmos-sdk v0.45.6-stafihub-0.0.4/go.mod h1:bPeeVMEtVvH3y3xAGHVbK+/CZlpaazzh77hG8ZrcJpI=
github.com/stafihub/rtoken-relay-core/common v0.0.0-20220903031254-1efa646fb59e h1:u+8gD1skcfQLsjg30RMfgKArNX7vYoMrkq9GQshr3c4=
github.com/stafihub/rtoken-relay-core/common v0.0.0-20220903031254-1efa646fb59e/go.mod h1:Ke6KI4qooU4Nco6PG2tjHaBaFKFqeAGS+BRgB71/GIw=
github.com/stafihub/stafi-hub-relay-sdk v1.7.2 h1:hFNhixlggv3z238Q4HMjrWraW34YOP5R6hSBmGvY30M=
github.com/stafihub/stafi-hub-relay-sdk v1.7.2/go.mod h1:GyoyzvcMmjtaqkkVm2LnIfozT90G416zOQbebg2iDmA=
github.com/stafihub/stafi-hub-relay-sdk v1.8.0 h1:Tp6vtY/6sb8GLDbtodtZiJVm7gFyS1/UMqihg7FZiUQ=
github.com/stafihub/stafi-hub-relay-sdk v1.8.0/go.mod h1:GyoyzvcMmjtaqkkVm2LnIfozT90G416zOQbebg2iDmA=
github.com/stafihub/stafihub v0.1.0 h1:3EMn615R8mEg6eskZgok+67wKC11rD0sfIM+iRF8EpU=
github.com/stafihub/stafihub v0.1.0/go.mod h1:xY155chryZY5plerYGnk/KKdex2LkGlQ93bSEEDOJJY=
github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I=
Expand Down

0 comments on commit 84e74d5

Please sign in to comment.