Skip to content

Commit

Permalink
Avoid using logs in example
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Feb 29, 2024
1 parent d43b2a6 commit 4d33c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/examples/cosmwasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4d33c0f

Please sign in to comment.