Skip to content

Commit 5478dc2

Browse files
committed
Avoid using logs in example
1 parent add1898 commit 5478dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/examples/cosmwasm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function main(hackatomWasmPath: string) {
4646
// Execute contract
4747
const executeFee = calculateFee(300_000, gasPrice);
4848
const result = await client.execute(alice.address0, contractAddress, { release: {} }, executeFee);
49-
const wasmEvent = result.logs[0].events.find((e) => e.type === "wasm");
49+
const wasmEvent = result.events.find((e) => e.type === "wasm");
5050
console.info("The `wasm` event emitted by the contract execution:", wasmEvent);
5151
}
5252

0 commit comments

Comments
 (0)