Skip to content

Process deploy param ref only when non-empty #5730

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

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Dec 13, 2024

PROT-935


PR-Codex overview

This PR focuses on improving the handling of implementationConstructorParams and initializeParams by adding checks to ensure they are defined before processing, enhancing code safety and readability.

Detailed summary

  • Changed processedImplParams and processedInitializeParams to be undefined initially.
  • Added checks for implementationConstructorParams and initializeParams to ensure they are defined before processing.
  • Retained the logic for processing parameters within the respective conditionals.

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

Copy link

vercel bot commented Dec 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 9:19am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 9:19am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 9:19am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 9:19am

Copy link

changeset-bot bot commented Dec 13, 2024

⚠️ No Changeset found

Latest commit: 8761fe6

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 Dec 13, 2024

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

github-actions bot commented Dec 13, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.94 KB (0%) 899 ms (0%) 400 ms (+125.46% 🔺) 1.3 s
thirdweb (cjs) 110.78 KB (0%) 2.3 s (0%) 546 ms (-23.86% 🔽) 2.8 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 51 ms (+132.16% 🔺) 163 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 25 ms (+554.67% 🔺) 35 ms
thirdweb/react (minimal + tree-shaking) 19.03 KB (0%) 381 ms (0%) 72 ms (+3.51% 🔺) 453 ms

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.93%. Comparing base (77c8d0e) to head (8761fe6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5730      +/-   ##
==========================================
+ Coverage   52.92%   52.93%   +0.01%     
==========================================
  Files        1098     1098              
  Lines       58976    58982       +6     
  Branches     4794     4794              
==========================================
+ Hits        31212    31225      +13     
+ Misses      27046    27039       -7     
  Partials      718      718              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 77c8d0e
packages 50.05% <100.00%> (+0.02%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...rdweb/src/extensions/prebuilts/deploy-published.ts 84.18% <100.00%> (+3.21%) ⬆️

@joaquim-verges joaquim-verges added the merge-queue Adds the pull request to Graphite's merge queue. label Dec 13, 2024
Copy link
Member

joaquim-verges commented Dec 13, 2024

Merge activity

  • Dec 13, 4:15 AM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 13, 4:15 AM EST: A user added this pull request to the Graphite merge queue.
  • Dec 13, 4:19 AM EST: A user merged this pull request with the Graphite merge queue.

PROT-935

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the handling of `implementationConstructorParams` and `initializeParams` by adding null checks to ensure that they are defined before processing. This improves the robustness of the code.

### Detailed summary
- Changed `processedImplParams` and `processedInitializeParams` from constants to `undefined` initially.
- Added checks to confirm that `implementationConstructorParams` and `initializeParams` are defined before processing.
- Retained the logic for processing parameters using `processRefDeployments`.

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-queue Adds the pull request to Graphite's merge queue. packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants