Skip to content

Commit 1bad21a

Browse files
committed
fix
1 parent 7c692ee commit 1bad21a

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

test/e2e/da_posting_integration_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ import (
2929
"github.com/cosmos/cosmos-sdk/x/bank"
3030
"github.com/cosmos/cosmos-sdk/x/gov"
3131
"github.com/cosmos/ibc-go/v8/modules/apps/transfer"
32+
libshare "github.com/celestiaorg/go-square/v3/share"
3233
"github.com/evstack/ev-node/pkg/da/jsonrpc"
3334
datypes "github.com/evstack/ev-node/pkg/da/types"
34-
seqcommon "github.com/evstack/ev-node/sequencers/common"
35-
"github.com/rs/zerolog"
3635
"github.com/stretchr/testify/require"
3736
)
3837

@@ -241,7 +240,7 @@ func TestEvNode_PostsToDA(t *testing.T) {
241240

242241
// 6) Assert data landed on DA via celestia-node blob RPC (namespace ev-data)
243242
daRPCAddr := fmt.Sprintf("http://%s", bridgeNetInfo.Internal.RPCAddress())
244-
daClient, err := jsonrpc.NewClient(ctx, zerolog.Nop(), daRPCAddr, authToken, seqcommon.AbsoluteMaxBlobSize)
243+
daClient, err := jsonrpc.NewClient(ctx, daRPCAddr, authToken, "")
245244
require.NoError(t, err, "new da client")
246245
defer daClient.Close()
247246

@@ -275,17 +274,20 @@ func TestEvNode_PostsToDA(t *testing.T) {
275274
return false, nil
276275
})
277276

277+
ns, err := libshare.NewNamespaceFromBytes(dataNamespace.Bytes())
278+
require.NoError(t, err, "create libshare namespace")
279+
278280
wait.ForCondition(ctx, time.Minute, 5*time.Second, func() (bool, error) {
279281
if pfbHeight == 0 {
280282
return false, nil
281283
}
282284
for h := pfbHeight; h <= pfbHeight+10; h++ {
283-
ids, err := daClient.DA.GetIDs(ctx, uint64(h), dataNamespace.Bytes())
285+
blobs, err := daClient.Blob.GetAll(ctx, uint64(h), []libshare.Namespace{ns})
284286
if err != nil {
285-
t.Logf("GetIDs data height=%d err=%v", h, err)
287+
t.Logf("GetAll data height=%d err=%v", h, err)
286288
continue
287289
}
288-
if ids != nil && len(ids.IDs) > 0 {
290+
if len(blobs) > 0 {
289291
return true, nil
290292
}
291293
}

test/e2e/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ require (
1515
github.com/evstack/ev-node/execution/evm v0.0.0-20250602130019-2a732cf903a5
1616
github.com/evstack/ev-node/execution/evm/test v0.0.0-00010101000000-000000000000
1717
github.com/libp2p/go-libp2p v0.45.0
18-
github.com/rs/zerolog v1.34.0
1918
github.com/stretchr/testify v1.11.1
2019
)
2120

@@ -199,6 +198,7 @@ require (
199198
github.com/rivo/uniseg v0.2.0 // indirect
200199
github.com/rogpeppe/go-internal v1.14.1 // indirect
201200
github.com/rs/cors v1.11.1 // indirect
201+
github.com/rs/zerolog v1.34.0 // indirect
202202
github.com/sagikazarmark/locafero v0.11.0 // indirect
203203
github.com/sasha-s/go-deadlock v0.3.5 // indirect
204204
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect

0 commit comments

Comments
 (0)