From 17e09cbfa0ccf3cf26dd03c7c3442fa1e7f0311a Mon Sep 17 00:00:00 2001 From: Daniel Savu Date: Wed, 26 May 2021 16:00:35 +0100 Subject: [PATCH] fix(treasury): Await issuance promise --- src/parachain/treasury.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parachain/treasury.ts b/src/parachain/treasury.ts index 997b9068f..64c0eedc9 100644 --- a/src/parachain/treasury.ts +++ b/src/parachain/treasury.ts @@ -43,7 +43,7 @@ export class DefaultTreasuryAPI extends DefaultTransactionAPI implements Treasur async total(): Promise { 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())); }