From 8674d6815bbe9596d803fde26c1dc25f0cb8e020 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 27 Feb 2020 23:42:10 +0100 Subject: [PATCH] Adapt config representation of hackatom --- packages/sdk/src/cosmwasmclient.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/sdk/src/cosmwasmclient.spec.ts b/packages/sdk/src/cosmwasmclient.spec.ts index f33a6075..72f4a58c 100644 --- a/packages/sdk/src/cosmwasmclient.spec.ts +++ b/packages/sdk/src/cosmwasmclient.spec.ts @@ -20,7 +20,7 @@ import { } from "./testutils.spec"; import { CosmosSdkTx, MsgSend, StdFee } from "./types"; -const { fromAscii, fromHex, fromUtf8, toAscii } = Encoding; +const { fromAscii, fromHex, fromUtf8, toAscii, toBase64 } = Encoding; const httpUrl = "http://localhost:1317"; @@ -506,9 +506,9 @@ describe("CosmWasmClient", () => { const raw = await client.queryContractRaw(contract.address, configKey); assert(raw, "must get result"); expect(JSON.parse(fromUtf8(raw))).toEqual({ - verifier: Array.from(Bech32.decode(contract.initMsg.verifier).data), - beneficiary: Array.from(Bech32.decode(contract.initMsg.beneficiary).data), - funder: Array.from(Bech32.decode(faucet.address).data), + verifier: toBase64(Bech32.decode(contract.initMsg.verifier).data), + beneficiary: toBase64(Bech32.decode(contract.initMsg.beneficiary).data), + funder: toBase64(Bech32.decode(faucet.address).data), }); });