Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Oct 23, 2025


PR-Codex overview

This PR introduces a patch for the thirdweb package, specifically updating the create-2-factory.ts file to include a new factory address for a specific network.

Detailed summary

  • Added a new factory address 0x4e59b44847b379578588920cA78FbF26c0B4956C for the network identifier 267 in the FACTORIES record within create-2-factory.ts.

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

Summary by CodeRabbit

  • New Features
    • Added support for the Neura testnet in Create2 factory deployments, enabling direct use of the factory on that network.
  • Chores
    • Added a patch release changelog entry documenting the update.

@kumaryash90 kumaryash90 requested review from a team as code owners October 23, 2025 14:03
@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2025

🦋 Changeset detected

Latest commit: d5d5939

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
thirdweb Patch
@thirdweb-dev/nebula Patch
@thirdweb-dev/wagmi-adapter Patch
wagmi-inapp Patch

Not sure what this means? Click here to learn what changesets are.

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

@vercel
Copy link

vercel bot commented Oct 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Oct 23, 2025 5:12pm
nebula Ready Ready Preview Comment Oct 23, 2025 5:12pm
thirdweb_playground Ready Ready Preview Comment Oct 23, 2025 5:12pm
thirdweb-www Ready Ready Preview Comment Oct 23, 2025 5:12pm
wallet-ui Ready Ready Preview Comment Oct 23, 2025 5:12pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 23, 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.

@kumaryash90 kumaryash90 changed the title Create2 factory neura testnet Update factory Oct 23, 2025
@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Oct 23, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 23, 2025

Walkthrough

Adds a changeset documenting a patch release and inserts a chain-specific Create2 factory address for Neura testnet (chain ID 267) into the factories lookup.

Changes

Cohort / File(s) Summary
Release metadata
\.changeset/weak-guests-fry.md
New changeset entry documenting a patch release for the thirdweb package with changelog message "create2 factory for neura testnet".
Chain configuration
packages/thirdweb/src/contract/deployment/utils/create-2-factory.ts
Added a factory address mapping for chain ID 267 (Neura testnet) to the FACTORIES lookup for direct Create2 factory address retrieval.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Description Check ⚠️ Warning The pull request description fails to follow the required template structure specified in the repository. The description lacks a properly formatted title in the required "[SDK/Dashboard/Portal] Feature/Fix:" format, does not include an issue tag (TEAM-0000 format), provides no "Notes for the reviewer" section, and omits the "How to test" section with testing instructions. While the description includes auto-generated PR-Codex content that summarizes the changes, this does not fulfill the required template sections that are essential for proper pull request documentation and reviewer context. The author should update the pull request description to include all required template sections: provide a properly formatted title, add the Linear issue tag if applicable, include a "Notes for the reviewer" section explaining the factory address addition for chain id 267, and provide a "How to test" section describing the testing approach (whether this includes unit tests, manual verification, or playground testing).
Title Check ❓ Inconclusive The pull request title "Update factory" is too vague and generic to effectively communicate the main change to a teammate scanning through history. While the title is technically related to the changeset (it does involve updating a factory), it provides no meaningful information about what factory is being updated, why it's being updated, or that this is specifically for the Neura testnet. The title uses non-descriptive language that fails to convey the specific nature of the change. Consider revising the title to be more descriptive and specific. For example, a title like "Add create2 factory address for Neura testnet (chain 267)" would clearly communicate the main change and help reviewers quickly understand the purpose of the PR without needing to examine the changeset details.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch yash/create2-factory-neura-testnet

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

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

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 (1)
packages/thirdweb/src/contract/deployment/utils/create-2-factory.ts (1)

324-324: Use the COMMON_FACTORY_ADDRESS constant for chain 267 to improve consistency.

Line 324 duplicates the factory address as a hardcoded literal, while lines 325-326 reference COMMON_FACTORY_ADDRESS directly. Since the hardcoded value at line 324 (0x4e59b44847b379578588920cA78FbF26c0B4956C) matches the constant definition exactly (line 20), refactoring to use the constant improves consistency and prevents future divergence:

const FACTORIES: Record<string, string> = {
  "88888": "0xc501b9abf5540de1dd24f66633b1ecf35ff7101f",
-  "267": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+  "267": COMMON_FACTORY_ADDRESS,
  "420120000": COMMON_FACTORY_ADDRESS,
  "420120001": COMMON_FACTORY_ADDRESS,
};

Note: On-chain verification that the factory is deployed at this address on chain 267 is outside code review scope and should be confirmed by deployment validation.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • 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 9a4b1cb and 9070eef.

📒 Files selected for processing (2)
  • .changeset/weak-guests-fry.md (1 hunks)
  • packages/thirdweb/src/contract/deployment/utils/create-2-factory.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
.changeset/*.md

📄 CodeRabbit inference engine (AGENTS.md)

.changeset/*.md: Each change in packages/* must include a changeset for the appropriate package
Version bump rules: patch for non‑API changes; minor for new/modified public API

Files:

  • .changeset/weak-guests-fry.md
**/*.{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/contract/deployment/utils/create-2-factory.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/contract/deployment/utils/create-2-factory.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/contract/deployment/utils/create-2-factory.ts
🪛 LanguageTool
.changeset/weak-guests-fry.md

[grammar] ~4-~4: Ensure spelling is correct
Context: --- "thirdweb": patch --- create2 factory for neura testnet

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Size
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
.changeset/weak-guests-fry.md (1)

1-5: LGTM!

The changeset format is correct and follows the guidelines. The "patch" version bump is appropriate for this infrastructure change. The static analysis hint about "neura" is a false positive—it's the proper name of the testnet.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.55 KB (0%) 1.3 s (0%) 154 ms (+196.19% 🔺) 1.5 s
thirdweb (cjs) 365.82 KB (0%) 7.4 s (0%) 562 ms (+15.12% 🔺) 7.9 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 87 ms (+2552.57% 🔺) 201 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 73 ms (+3455.09% 🔺) 83 ms
thirdweb/react (minimal + tree-shaking) 19.09 KB (0%) 382 ms (0%) 69 ms (+1801.86% 🔺) 451 ms

@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.87%. Comparing base (85fe949) to head (d5d5939).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8301   +/-   ##
=======================================
  Coverage   54.86%   54.87%           
=======================================
  Files         919      919           
  Lines       60706    60707    +1     
  Branches     4126     4127    +1     
=======================================
+ Hits        33309    33315    +6     
+ Misses      27295    27290    -5     
  Partials      102      102           
Flag Coverage Δ
packages 54.87% <100.00%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
.../src/contract/deployment/utils/create-2-factory.ts 88.38% <100.00%> (+0.04%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 23, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a patch for the `thirdweb` package, adding a new factory address for the `create2` deployment on the Neura testnet.

### Detailed summary
- Added a new factory address for `267`: `0x4e59b44847b379578588920cA78FbF26c0B4956C` to the `FACTORIES` record in `create-2-factory.ts`.

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

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **New Features**
  * Added support for Neura testnet in Create2 factory deployments.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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 (1)
.changeset/weak-guests-fry.md (1)

5-5: Capitalize "Create2" and "Neura" in the description.

The changeset description uses lowercase "create2" and "neura", which should follow standard capitalization conventions. "Create2" is the standard naming for the EVM opcode/factory, and the PR description uses "Neura testnet" (capital N).

Apply this diff to improve consistency with conventions:

-create2 factory for neura testnet
+Create2 factory for Neura testnet
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • 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 9070eef and d5d5939.

📒 Files selected for processing (2)
  • .changeset/weak-guests-fry.md (1 hunks)
  • packages/thirdweb/src/contract/deployment/utils/create-2-factory.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/thirdweb/src/contract/deployment/utils/create-2-factory.ts
🧰 Additional context used
📓 Path-based instructions (1)
.changeset/*.md

📄 CodeRabbit inference engine (AGENTS.md)

.changeset/*.md: Each change in packages/* must include a changeset for the appropriate package
Version bump rules: patch for non‑API changes; minor for new/modified public API

Files:

  • .changeset/weak-guests-fry.md
🪛 LanguageTool
.changeset/weak-guests-fry.md

[grammar] ~4-~4: Ensure spelling is correct
Context: --- "thirdweb": patch --- create2 factory for neura testnet

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
.changeset/weak-guests-fry.md (1)

1-5: Changeset structure and versioning are correct.

The changeset file is properly formatted with the correct package name ("thirdweb") and version bump type (patch). Adding a new chain-specific factory address is a non-API change, so the patch bump is appropriate.

@graphite-app graphite-app bot merged commit d5d5939 into main Oct 23, 2025
24 checks passed
@graphite-app graphite-app bot deleted the yash/create2-factory-neura-testnet branch October 23, 2025 17:58
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.

2 participants