Skip to content

Commit

Permalink
fix: temporary fix for getInscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcrazycoder committed Sep 30, 2023
1 parent 100c6b7 commit 30375f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/sdk/src/modules/JsonRpcDatasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ export default class JsonRpcDatasource extends BaseDatasource {
}

async getInscriptions({ outpoint, decodeMetadata }: GetInscriptionsOptions) {
const inscriptions = await rpc[this.network].call<Inscription[]>("GetInscriptions", { outpoint }, rpc.id)
const { inscriptions } = await rpc[this.network].call<{
inscriptions: Inscription[]
pagination: {
limit: number
prev: string | null
next: string | null
}
}>("GetInscriptions", { outpoint }, rpc.id)

return decodeMetadata ? DatasourceUtility.transformInscriptions(inscriptions) : inscriptions
}
Expand Down

0 comments on commit 30375f9

Please sign in to comment.