Skip to content

Commit

Permalink
Fix wasm events length
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Mar 8, 2024
1 parent 0d83ef8 commit 7c68060
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cosmwasm-stargate/src/signingcosmwasmclient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,9 @@ describe("SigningCosmWasmClient", () => {
"auto",
);
const { events } = result;
expect(events.length).toEqual(2);
const [wasmEvent1, wasmEvent2] = events.filter((e) => e.type == "wasm");
const wasmEvents = events.filter((e) => e.type == "wasm");
expect(wasmEvents.length).toEqual(2);
const [wasmEvent1, wasmEvent2] = wasmEvents;
expect(wasmEvent1.type).toEqual("wasm");
expect(wasmEvent1.attributes).toContain({ key: "action", value: "release" });
expect(wasmEvent1.attributes).toContain({
Expand Down

0 comments on commit 7c68060

Please sign in to comment.