-
Notifications
You must be signed in to change notification settings - Fork 409
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
[SDK] Fix invalid recipient
issue when deploy built-in contracts
#2020
Conversation
🦋 Changeset detectedLatest commit: 34ff60a The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 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 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2020 +/- ##
=======================================
Coverage 67.48% 67.49%
=======================================
Files 291 292 +1
Lines 11019 11028 +9
Branches 1511 1514 +3
=======================================
+ Hits 7436 7443 +7
Misses 2960 2960
- Partials 623 625 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder if we can make primary_sale_recipient optional now with this? it's required right now in the deploy metadata objects
@joaquim-verges Hmm I'm not aware of any recent updates. Are you saying we don't need this PR? |
Ah I see, you were talking about the |
Oh I meant leave your changes, but make it optional in NFTDeployMetadata and co (default to address zero) |
10f6d39
to
efad0a0
Compare
Ty for the feedback. I'm updating the code plus adding a new test file! |
Added new test file here: Also |
* Fix verification check * Fix check again
Problem solved
In the past we default
platform_fee_recipient
andprimary_sale_recipient
to AddressZero.However due to a recent change in our smart contract extensions (PrimarySale & PlatformFee), AddressZero is no longer an accepted value for those fields.
So now we set the default value to the signer address.
ref: thirdweb-dev/contracts#530
Changes made
How to test