Skip to content

Commit

Permalink
wip: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Nov 11, 2023
1 parent beb0757 commit ded793f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pkg/relayer/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ func setupRelayerDependencies(
return nil, err
}

deps, err = supplyMiner(deps)
if err != nil {
return nil, err
}

// Depends on EventsQueryClient.
deps, err = supplyBlockClient(ctx, deps, rpcQueryURL)
if err != nil {
Expand All @@ -141,12 +136,18 @@ func setupRelayerDependencies(
return nil, err
}

var clientCtx cosmosclient.Context
if err := depinject.Inject(deps, &clientCtx); err != nil {
//var clientCtx cosmosclient.Context
//if err := depinject.Inject(deps, &clientCtx); err != nil {
// panic(err)
//}

clientCtx, err := cosmosclient.GetClientQueryContext(cmd)
if err != nil {
panic(err)
}
supplierQuerier := suppliertypes.NewQueryClient(clientCtx)
supplierQuery := &suppliertypes.QueryGetSupplierRequest{Address: ""}

log.Printf("clientCtx: %+v", clientCtx)
_, err = supplierQuerier.Supplier(ctx, supplierQuery)
if err != nil {
Expand Down Expand Up @@ -224,8 +225,6 @@ func supplyClientCtxAndTxFactory(
deps depinject.Config,
cmd *cobra.Command,
) (depinject.Config, error) {
cosmosclient.GetClientQueryContext(cmd)

clientCtx, err := cosmosclient.GetClientTxContext(cmd)
if err != nil {
return nil, err
Expand Down

0 comments on commit ded793f

Please sign in to comment.