diff --git a/examples/rental-model/advanced/deposit/observer.ts b/examples/rental-model/advanced/deposit/observer.ts index 2957f68cc..2af2d3871 100644 --- a/examples/rental-model/advanced/deposit/observer.ts +++ b/examples/rental-model/advanced/deposit/observer.ts @@ -22,7 +22,7 @@ async function checkIsDopositClosed(spenderAddress: Address, funderAddress: Addr const functionNameWithArgs = `${parsedMethod.functionName}(${parsedMethod.args.join(",")})`; console.log(chalk.magenta("\nContract transaction log:")); console.log(chalk.magenta("call:"), functionNameWithArgs); - console.log(chalk.magenta("event:"), log["eventName"]); + console.log(chalk.magenta("event:"), "eventName" in log ? log["eventName"] : ""); console.log(chalk.magenta("from:"), transaction.from); console.log(chalk.magenta("hash:"), transaction.hash, "\n"); const functionName = parsedMethod.functionName.toLowerCase(); diff --git a/examples/tsconfig.json b/examples/tsconfig.json index b09c90abe..019ecf870 100644 --- a/examples/tsconfig.json +++ b/examples/tsconfig.json @@ -3,7 +3,7 @@ "module": "esnext", "target": "esnext", "strict": true, - "noImplicitAny": false, + "noImplicitAny": true, "esModuleInterop": true, "moduleResolution": "Bundler", "removeComments": true,