Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Shuplenkov committed Apr 26, 2021
1 parent 7b2c01f commit 72b11a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/SDK/Client/Platform/StateRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,19 @@ class StateRepository {
}

async fetchTransaction(id: string): Promise<{ data: Buffer, height: number }> {
// @ts-ignore
const transaction = await this.client.getWalletAccount().getTransaction(id);
const walletAccount = await this.client.getWalletAccount();

const transaction = await walletAccount.getTransaction(id);

return {
// @ts-ignore
data: transaction.toBuffer(),
height: 1,
};
}

async fetchLatestPlatformBlockHeader(id: string): Promise<{ coreChainLockedHeight: number }> {
// @ts-ignore
const coreChainLockedHeight = await this.client.wallet.transport.getBestBlockHeight();
const coreChainLockedHeight = await this.client.wallet!.transport.getBestBlockHeight();

return {
coreChainLockedHeight,
Expand Down

0 comments on commit 72b11a8

Please sign in to comment.