-
Notifications
You must be signed in to change notification settings - Fork 539
Compute addresses with ref contracts #5699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 1273cc7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5699 +/- ##
==========================================
+ Coverage 54.73% 54.81% +0.07%
==========================================
Files 874 875 +1
Lines 54710 54851 +141
Branches 3712 3736 +24
==========================================
+ Hits 29946 30066 +120
- Misses 24669 24690 +21
Partials 95 95
🚀 New features to boost your workflow:
|
Merge activity
|
TOOL-2796 (XPROT-934) ## Problem solved This was an issue when installing modules published with ref contracts. Module installation goes through infra deployment functions which use computed addresses. SDK should process ref contracts when computing published contract addresses. <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the handling of published contract references in the `thirdweb` library, particularly in the deployment process. It introduces a new function to compute addresses for these references and updates existing functions and tests accordingly. ### Detailed summary - Added `processRefDeployments` function to process contract references in constructor params. - Introduced `computeRefDeployments` function for computing addresses of published contract references. - Updated the handling of `salt` values to default to an empty string instead of `"thirdweb"`. - Modified `computeDeploymentInfoFromMetadata` to use processed constructor parameters. - Adjusted tests to reflect changes in contract deployment parameters and added new tests for address computation of deployed contracts with references. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
abe57a5
to
1273cc7
Compare
TOOL-2796 (XPROT-934)
Problem solved
This was an issue when installing modules published with ref contracts. Module installation goes through infra deployment functions which use computed addresses.
SDK should process ref contracts when computing published contract addresses.
PR-Codex overview
This PR focuses on enhancing the handling of published contract references within the
thirdweb
library by modifying how contract addresses are computed and processed in deployment options.Detailed summary
processRefDeployments
to handle empty salt values.computeRefDeployments
to compute addresses for contract references.computeDeploymentInfoFromMetadata
to use processed constructor parameters.