Skip to content

Commit

Permalink
fix(treasury): Await issuance promise
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-savu committed May 26, 2021
1 parent d4d1bcf commit 17e09cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parachain/treasury.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class DefaultTreasuryAPI extends DefaultTransactionAPI implements Treasur

async total(): Promise<Big> {
const head = await this.api.rpc.chain.getFinalizedHead();
const totalBN = this.api.query.wrapped.totalIssuance.at(head);
const totalBN = await this.api.query.wrapped.totalIssuance.at(head);
return new Big(satToBTC(totalBN.toString()));
}

Expand Down

0 comments on commit 17e09cb

Please sign in to comment.