From f8f90fd3abdf0cff69cb11ae62fe16c38ecd294c Mon Sep 17 00:00:00 2001 From: kien-ngo Date: Thu, 17 Oct 2024 11:22:13 +0000 Subject: [PATCH] [Dashboard] Fix prepareEvent code snippet (#5052) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## PR-Codex overview This PR focuses on removing redundant lines of code related to the `preparedEvent` declaration in the `code-overview.tsx` file. ### Detailed summary - Removed duplicate declarations of `preparedEvent` that included `contract` and `signature: "{{function}}"`. - Streamlined the `getContractEvents` function call by eliminating unnecessary lines. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../src/contract-ui/tabs/code/components/code-overview.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/dashboard/src/contract-ui/tabs/code/components/code-overview.tsx b/apps/dashboard/src/contract-ui/tabs/code/components/code-overview.tsx index 059f0e57bc7..ef054f644a1 100644 --- a/apps/dashboard/src/contract-ui/tabs/code/components/code-overview.tsx +++ b/apps/dashboard/src/contract-ui/tabs/code/components/code-overview.tsx @@ -198,7 +198,6 @@ export default function Component() { javascript: `import { prepareEvent, getContractEvents } from "thirdweb"; const preparedEvent = prepareEvent({ - contract, signature: "{{function}}" }); const events = await getContractEvents({ @@ -209,7 +208,6 @@ const events = await getContractEvents({ import { useContractEvents } from "thirdweb/react"; const preparedEvent = prepareEvent({ - contract, signature: "{{function}}" }); @@ -223,7 +221,6 @@ export default function Component() { import { useContractEvents } from "thirdweb/react"; const preparedEvent = prepareEvent({ - contract, signature: "{{function}}" });