From 3606e1137cc707453802359d32c58cd58d6c1724 Mon Sep 17 00:00:00 2001 From: Faberto Date: Tue, 30 Jan 2024 08:21:57 +0100 Subject: [PATCH] height call fix --- backend/src/blockchain.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/blockchain.ts b/backend/src/blockchain.ts index 172e7a6..712182f 100644 --- a/backend/src/blockchain.ts +++ b/backend/src/blockchain.ts @@ -185,7 +185,6 @@ export async function getTransaction(transactionHash: string) { */ export async function getBlockHeight() { const client = getClient(); - const blockHeight: CallResult = - await client.blockchain.getBlockNumber(); + const blockHeight: CallResult = await client.block.current(); return blockHeight.data; }