Skip to content

Commit

Permalink
fix calling after dep update
Browse files Browse the repository at this point in the history
  • Loading branch information
faberto committed Jan 30, 2024
1 parent 72ea178 commit a5957de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export async function getTotalRewards(validatorAddress: Address) {
export async function getTransaction(transactionHash: string) {
const client = getClient();
const tx: CallResult<Transaction> =
await client.transaction.getByHash(transactionHash);
await client.blockchain.getTransactionByHash(transactionHash);
return tx.data;
}

Expand All @@ -185,6 +185,6 @@ export async function getTransaction(transactionHash: string) {
*/
export async function getBlockHeight() {
const client = getClient();
const blockHeight: CallResult<number> = await client.block.current();
const blockHeight: CallResult<number> = await client.blockchain.getBlockNumber();
return blockHeight.data;
}

0 comments on commit a5957de

Please sign in to comment.