Skip to content

Commit e6fb33f

Browse files
committed
fix(synapse-core): remove toReadClient wrapper in getActivePiecesByCursor
Pass the original client directly to the readContract function, simplifying the code and aligning with recent changes in client handling.
1 parent 574ab1b commit e6fb33f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/synapse-core/src/pdp-verifier/get-active-pieces-by-cursor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { from as pieceFrom } from '../piece/parse.ts'
1515
import type { PieceCID } from '../piece/piece-cid.ts'
1616
import type { PaginatedActionCallOptions } from '../types.ts'
1717
import { STRING_ERRORS, stringErrorEquals } from '../utils/contract-errors.ts'
18-
import { toReadClient } from '../utils/read-client.ts'
1918

2019
export namespace getActivePiecesByCursor {
2120
export type OptionsType = PaginationOptions & {
@@ -74,7 +73,7 @@ export async function getActivePiecesByCursor(
7473
const { cursor, limit } = resolvePagination(options, 100n)
7574
try {
7675
const data = await readContract(
77-
toReadClient(client),
76+
client,
7877
getActivePiecesByCursorCall({
7978
chain: client.chain,
8079
dataSetId: options.dataSetId,

0 commit comments

Comments
 (0)