From b56970eeb9243d9a4d464df8172ab7aed4792264 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 13 Feb 2020 23:08:37 +0100 Subject: [PATCH] Use CosmWasmClient.queryContractSmart --- packages/bcp/src/cosmwasmconnection.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/bcp/src/cosmwasmconnection.ts b/packages/bcp/src/cosmwasmconnection.ts index d8be0c4c..2dcf49a4 100644 --- a/packages/bcp/src/cosmwasmconnection.ts +++ b/packages/bcp/src/cosmwasmconnection.ts @@ -160,8 +160,7 @@ export class CosmWasmConnection implements BlockchainConnection { this.erc20Tokens.map( async (erc20): Promise => { const queryMsg = { balance: { address: address } }; - // tslint:disable-next-line: deprecation - const smart = await this.restClient.queryContractSmart(erc20.contractAddress, queryMsg); + const smart = await this.cosmWasmClient.queryContractSmart(erc20.contractAddress, queryMsg); const response = JSON.parse(fromAscii(smart)); const normalizedBalance = new BN(response.balance).toString(); return {