From a5957de40e8c16ca5247fbcc5f4a722fd0abfea0 Mon Sep 17 00:00:00 2001 From: Faberto Date: Tue, 30 Jan 2024 14:08:43 +0100 Subject: [PATCH] fix calling after dep update --- backend/src/blockchain.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/blockchain.ts b/backend/src/blockchain.ts index b7094a9..5df3b42 100644 --- a/backend/src/blockchain.ts +++ b/backend/src/blockchain.ts @@ -175,7 +175,7 @@ export async function getTotalRewards(validatorAddress: Address) { export async function getTransaction(transactionHash: string) { const client = getClient(); const tx: CallResult = - await client.transaction.getByHash(transactionHash); + await client.blockchain.getTransactionByHash(transactionHash); return tx.data; } @@ -185,6 +185,6 @@ export async function getTransaction(transactionHash: string) { */ export async function getBlockHeight() { const client = getClient(); - const blockHeight: CallResult = await client.block.current(); + const blockHeight: CallResult = await client.blockchain.getBlockNumber(); return blockHeight.data; }