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 Mar 8, 2024
1 parent add1898 commit 5478dc2
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 5478dc2

Please sign in to comment.