From 5478dc2ecd668ffe8d125ab3dd97997681e8839a Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 29 Feb 2024 16:56:05 +0100 Subject: [PATCH] Avoid using logs in example --- packages/cli/examples/cosmwasm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/examples/cosmwasm.ts b/packages/cli/examples/cosmwasm.ts index 6a75c7a516..a54f3e548d 100755 --- a/packages/cli/examples/cosmwasm.ts +++ b/packages/cli/examples/cosmwasm.ts @@ -46,7 +46,7 @@ async function main(hackatomWasmPath: string) { // Execute contract const executeFee = calculateFee(300_000, gasPrice); const result = await client.execute(alice.address0, contractAddress, { release: {} }, executeFee); - const wasmEvent = result.logs[0].events.find((e) => e.type === "wasm"); + const wasmEvent = result.events.find((e) => e.type === "wasm"); console.info("The `wasm` event emitted by the contract execution:", wasmEvent); }