diff --git a/da/interchain/chain_client.go b/da/interchain/chain_client.go index 3f4b371bb..8db866fde 100644 --- a/da/interchain/chain_client.go +++ b/da/interchain/chain_client.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/tx" "github.com/dymensionxyz/cosmosclient/cosmosclient" "github.com/ignite/cli/ignite/pkg/cosmosaccount" @@ -39,19 +38,12 @@ func newDAClient(ctx context.Context, config DAConfig) (*daClient, error) { } return &daClient{ Client: c, - queryClient: interchainda.NewQueryClient(c.Context().GRPCClient), + queryClient: interchainda.NewQueryClient(c.Context()), txService: tx.NewServiceClient(c.Context()), }, nil } func (c *daClient) Params(ctx context.Context) (interchainda.Params, error) { - return interchainda.Params{ - CostPerByte: sdk.NewInt64Coin(sdk.DefaultBondDenom, 1), - MaxBlobSize: 999999999, - DisputePeriod: 200, - }, nil - - // TODO: uncomment when we find a workaround on how to initialize the interchain da query client resp, err := c.queryClient.Params(ctx, &interchainda.QueryParamsRequest{}) if err != nil { return interchainda.Params{}, fmt.Errorf("can't query DA layer params: %w", err) diff --git a/da/interchain/interchain_test.go b/da/interchain/interchain_test.go index f4ff0c54e..97c2c38b0 100644 --- a/da/interchain/interchain_test.go +++ b/da/interchain/interchain_test.go @@ -14,6 +14,8 @@ import ( // TODO: add interchain DA chain mock func TestDALayerClient_Init(t *testing.T) { + t.Skip() // Test is not finished yet + client := new(interchain.DALayerClient) config := interchain.DefaultDAConfig() rawConfig, err := json.Marshal(config)