Skip to content

Commit

Permalink
Merge pull request #290 from interlay/dan/big-types
Browse files Browse the repository at this point in the history
chore: Upgrade Big.js type dep
  • Loading branch information
daniel-savu authored May 26, 2021
2 parents 8d613da + 17e09cb commit 46034e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interlay/polkabtc",
"version": "0.15.4",
"version": "0.15.5",
"description": "JavaScript library to interact with PolkaBTC",
"main": "build/index.js",
"typings": "build/index.d.ts",
Expand Down Expand Up @@ -42,7 +42,7 @@
"@interlay/polkabtc-types": "0.7.2",
"@polkadot/api": "4.8.1",
"@polkadot/typegen": "4.8.1",
"@types/big.js": "4.0.5",
"@types/big.js": "6.0.2",
"big.js": "6.0.3",
"bitcoin-core": "^3.0.0",
"bitcoinjs-lib": "^5.2.0",
Expand Down
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 46034e6

Please sign in to comment.