Skip to content

Commit

Permalink
height call fix
Browse files Browse the repository at this point in the history
  • Loading branch information
faberto committed Jan 30, 2024
1 parent e5a8714 commit 3606e11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ export async function getTransaction(transactionHash: string) {
*/
export async function getBlockHeight() {
const client = getClient();
const blockHeight: CallResult<number> =
await client.blockchain.getBlockNumber();
const blockHeight: CallResult<number> = await client.block.current();
return blockHeight.data;
}

0 comments on commit 3606e11

Please sign in to comment.