Skip to content

Conversation

sashaodessa
Copy link

@sashaodessa sashaodessa commented Sep 10, 2025

Correct minor spelling mistakes in comments/docs.

  • useContractEvents.ts: “extesions” → “extensions”
  • useWaitForReceipt.ts: “undefned” → “undefined”
  • rpc.ts: “assing” → “assign”
  • ecosystem.ts: “parnter” → “partner”

PR-Codex overview

This PR focuses on correcting typos and improving code comments for clarity across various files in the thirdweb package.

Detailed summary

  • Fixed typo: undfined to undefined in useWaitForReceipt.ts.
  • Fixed typo: assing to assign in rpc.ts.
  • Fixed typo: extesions to extensions in useContractEvents.ts.
  • Fixed typo: parnter to partner in ecosystem.ts.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Documentation
    • Corrected typos across user-facing docs, including event extension usage and partner ID guidance for in-app wallet ecosystems.
    • Improved readability by fixing minor spelling errors in inline comments across networking and receipt-related helpers.
    • No functional changes; public APIs and runtime behavior remain unchanged.
    • These updates aim to reduce confusion and improve clarity throughout the SDK.

Signed-off-by: sashaodessa <140454972+sashaodessa@users.noreply.github.com>
Signed-off-by: sashaodessa <140454972+sashaodessa@users.noreply.github.com>
Signed-off-by: sashaodessa <140454972+sashaodessa@users.noreply.github.com>
Signed-off-by: sashaodessa <140454972+sashaodessa@users.noreply.github.com>
@sashaodessa sashaodessa requested review from a team as code owners September 10, 2025 11:28
Copy link

changeset-bot bot commented Sep 10, 2025

⚠️ No Changeset found

Latest commit: ac82d2e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

graphite-app bot commented Sep 10, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

Copy link
Contributor

coderabbitai bot commented Sep 10, 2025

Walkthrough

Documentation/comment typo corrections across multiple files; no runtime, control flow, or API changes.

Changes

Cohort / File(s) Summary
Docs/comment typo fixes
packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts, packages/thirdweb/src/react/core/hooks/contract/useWaitForReceipt.ts, packages/thirdweb/src/rpc/rpc.ts, packages/thirdweb/src/wallets/in-app/native/ecosystem.ts
Fixed spelling in comments/docs (e.g., module path, words like "undefined", "assign", "partner"). No code or API modifications.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Pre-merge checks (2 passed, 1 warning)

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The current description enumerates the typo fixes but does not adhere to the repository’s required pull request template because it is missing the commented PR header with the standardized title format, the issue tag section, a “## Notes for the reviewer” section, and a “## How to test” section. Please update the description to include the repository’s template, adding the commented header with proper title format, an issue tag if applicable, a “## Notes for the reviewer” section detailing any important considerations, and a “## How to test” section outlining validation steps.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title succinctly describes the main change—fixing typos in comments and documentation across the thirdweb packages—without extraneous details or vague language, making it clear and appropriate for review history.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Sep 10, 2025
Copy link

vercel bot commented Sep 10, 2025

@sashaodessa is attempting to deploy a commit to the thirdweb Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts (1)

31-31: Typo in param docs: “Shuould” → “Should”.

Minor doc polish.

Apply this diff:

- * @param options.events - The events to watch. Shuould be an array of [prepared events](https://portal.thirdweb.com/references/typescript/v5/prepareEvent).
+ * @param options.events - The events to watch. Should be an array of [prepared events](https://portal.thirdweb.com/references/typescript/v5/prepareEvent).
packages/thirdweb/src/react/core/hooks/contract/useWaitForReceipt.ts (1)

36-36: Optional: safer optional chaining + nullish coalescing.

Prevents accessing .id when chain is undefined and avoids || semantics.

-      options?.chain.id || -1,
+      options?.chain?.id ?? -1,
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a724bc3 and ac82d2e.

📒 Files selected for processing (4)
  • packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts (1 hunks)
  • packages/thirdweb/src/react/core/hooks/contract/useWaitForReceipt.ts (1 hunks)
  • packages/thirdweb/src/rpc/rpc.ts (1 hunks)
  • packages/thirdweb/src/wallets/in-app/native/ecosystem.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • packages/thirdweb/src/rpc/rpc.ts
  • packages/thirdweb/src/wallets/in-app/native/ecosystem.ts
  • packages/thirdweb/src/react/core/hooks/contract/useWaitForReceipt.ts
  • packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • packages/thirdweb/src/rpc/rpc.ts
  • packages/thirdweb/src/wallets/in-app/native/ecosystem.ts
  • packages/thirdweb/src/react/core/hooks/contract/useWaitForReceipt.ts
  • packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts
packages/thirdweb/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

packages/thirdweb/**/*.{ts,tsx}: Every public symbol must have comprehensive TSDoc with at least one compiling @example and a custom tag (@beta, @internal, @experimental, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose
Lazy‑load heavy dependencies inside async paths (e.g., const { jsPDF } = await import("jspdf"))

Files:

  • packages/thirdweb/src/rpc/rpc.ts
  • packages/thirdweb/src/wallets/in-app/native/ecosystem.ts
  • packages/thirdweb/src/react/core/hooks/contract/useWaitForReceipt.ts
  • packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts
packages/thirdweb/src/wallets/**

📄 CodeRabbit inference engine (CLAUDE.md)

packages/thirdweb/src/wallets/**: Unified Wallet and Account interfaces in wallet architecture
Support for in-app wallets (social/email login)
Smart wallets with account abstraction
EIP-1193, EIP-5792, EIP-7702 standard support in wallet modules

Files:

  • packages/thirdweb/src/wallets/in-app/native/ecosystem.ts
🧠 Learnings (1)
📚 Learning: 2025-06-17T18:30:52.976Z
Learnt from: MananTank
PR: thirdweb-dev/js#7356
File: apps/nebula/src/app/not-found.tsx:1-1
Timestamp: 2025-06-17T18:30:52.976Z
Learning: In the thirdweb/js project, the React namespace is available for type annotations (like React.FC) without needing to explicitly import React. This is project-specific configuration that differs from typical TypeScript/React setups.

Applied to files:

  • packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts
🔇 Additional comments (4)
packages/thirdweb/src/rpc/rpc.ts (1)

128-128: Typo fix LGTM.

“assign” comment reads correctly; no runtime changes.

packages/thirdweb/src/react/core/hooks/contract/useContractEvents.ts (1)

40-40: Docs path fix LGTM.

Corrected to thirdweb/extensions.

packages/thirdweb/src/react/core/hooks/contract/useWaitForReceipt.ts (1)

35-35: Typo fix in TODO LGTM.

“undefined” spelled correctly.

packages/thirdweb/src/wallets/in-app/native/ecosystem.ts (1)

51-51: Docs wording fix LGTM.

“partner” reads correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant