Skip to content

Commit f8f90fd

Browse files
committed
[Dashboard] Fix prepareEvent code snippet (#5052)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex -->
1 parent 63037f1 commit f8f90fd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apps/dashboard/src/contract-ui/tabs/code/components/code-overview.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ export default function Component() {
198198
javascript: `import { prepareEvent, getContractEvents } from "thirdweb";
199199
200200
const preparedEvent = prepareEvent({
201-
contract,
202201
signature: "{{function}}"
203202
});
204203
const events = await getContractEvents({
@@ -209,7 +208,6 @@ const events = await getContractEvents({
209208
import { useContractEvents } from "thirdweb/react";
210209
211210
const preparedEvent = prepareEvent({
212-
contract,
213211
signature: "{{function}}"
214212
});
215213
@@ -223,7 +221,6 @@ export default function Component() {
223221
import { useContractEvents } from "thirdweb/react";
224222
225223
const preparedEvent = prepareEvent({
226-
contract,
227224
signature: "{{function}}"
228225
});
229226

0 commit comments

Comments
 (0)