cosmwasm-stargate: Update tests after ts-proto update

This commit is contained in:
willclarktech 2021-04-06 15:44:45 +02:00
parent 527f2ac351
commit 5245028200
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 3 additions and 3 deletions

View File

@ -370,7 +370,7 @@ describe("CosmWasmClient", () => {
const client = await CosmWasmClient.connect(wasmd.endpoint);
const raw = await client.queryContractRaw(contract.address, otherKey);
expect(raw).toBeNull();
expect(raw).toEqual(new Uint8Array());
});
it("errors for non-existent contract", async () => {

View File

@ -324,12 +324,12 @@ describe("WasmExtension", () => {
expect(model.beneficiary).toMatch(base64Matcher);
});
it("returns undefined for missing key", async () => {
it("returns empty for missing key", async () => {
pendingWithoutWasmd();
assert(hackatomContractAddress);
const client = await makeWasmClient(wasmd.endpoint);
const { data } = await client.wasm.queryContractRaw(hackatomContractAddress, fromHex("cafe0dad"));
expect(data).toBeUndefined();
expect(data).toEqual(new Uint8Array());
});
it("returns null for non-existent address", async () => {