Skip to content

Commit

Permalink
fix: automatic predicate registration (#97)
Browse files Browse the repository at this point in the history
* chore: log predicate being registered

* fix: retrieve chain tip as int
  • Loading branch information
rafaelcr committed Jun 14, 2023
1 parent cbebdc9 commit 73157f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pg/pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ export class PgStore extends BasePgStore {
}

async getChainTipBlockHeight(): Promise<number> {
const result = await this.sql<{ block_height: number }[]>`SELECT block_height FROM chain_tip`;
return result[0].block_height;
const result = await this.sql<{ block_height: string }[]>`SELECT block_height FROM chain_tip`;
return parseInt(result[0].block_height);
}

async getChainTipInscriptionCount(): Promise<number> {
Expand Down

0 comments on commit 73157f1

Please sign in to comment.