Fix bcp, update to proper docker image

This commit is contained in:
Ethan Frey 2020-02-11 10:23:57 +01:00
parent 13c708e787
commit 8e0042ed75
2 changed files with 4 additions and 5 deletions

View File

@ -41,7 +41,7 @@ import { Caip5 } from "./caip5";
import { decodeAmount, parseTxsResponse } from "./decode";
import { accountToNonce, BankToken, Erc20Token } from "./types";
const { toHex } = Encoding;
const { fromAscii, toHex } = Encoding;
interface ChainData {
readonly chainId: ChainId;
@ -168,9 +168,8 @@ export class CosmWasmConnection implements BlockchainConnection {
this.erc20Tokens.map(
async (erc20): Promise<Amount> => {
const queryMsg = { balance: { address: address } };
const response = JSON.parse(
await this.restClient.queryContractSmart(erc20.contractAddress, queryMsg),
);
const smart = await this.restClient.queryContractSmart(erc20.contractAddress, queryMsg);
const response = JSON.parse(fromAscii(smart));
const normalizedBalance = new BN(response.balance).toString();
return {
fractionalDigits: erc20.fractionalDigits,

View File

@ -1,5 +1,5 @@
# Choose from https://hub.docker.com/r/cosmwasm/wasmd-demo/tags
REPOSITORY="cosmwasm/wasmd-demo"
VERSION="v0.0.5"
VERSION="v0.6.0"
CONTAINER_NAME="wasmd"