Skip to content
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

feat: add v4-periphery deployment address #2

Merged
merged 3 commits into from
Mar 26, 2024
Merged

Conversation

ChefMist
Copy link
Collaborator

@ChefMist ChefMist commented Mar 25, 2024

Follow-up PR from https://github.com/pancakeswap/pancake-v4-core/pull/7

  • deploy v4-periphery on Sepolia
  • update BaseScript for proper validation

Once its merged, will

Comment on lines -66 to -67
if (NFTPositionDescriptorProxy == address(0)) {
revert InvalidProxyAddress();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not required as getAddressFromConfig will throw error if address not set

Screenshot 2024-03-25 at 2 45 35 PM

Copy link
Collaborator

Choose a reason for hiding this comment

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

i think this is the purpose why added the error.
If you did not set the address , will get this error.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree with Mist, It's fine if getAddressFromConfig already covers it

Copy link
Collaborator Author

@ChefMist ChefMist Mar 25, 2024

Choose a reason for hiding this comment

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

yeh it was my bad @ChefSnoopy -- the original BaseScript validation seems to be no longer working.. i just checked today when deploying v4-core and it seems to decode both "" and "0x" as 0x20 for empty address

which explain the changes here https://github.com/pancakeswap/pancake-v4-periphery/pull/2/files#diff-0f008501c3a9e80366f57118bc1631e5b975a40ee503a9617505689b8e9cb7d1R25

chefburger
chefburger previously approved these changes Mar 25, 2024
Copy link
Collaborator

@chefburger chefburger left a comment

Choose a reason for hiding this comment

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

lgtm

@ChefMist
Copy link
Collaborator Author

since https://github.com/pancakeswap/pancake-v4-periphery/pull/3 is approved, will wait for that PR to be merged and then re-deploy and update this PR

@ChefMist ChefMist merged commit 674048a into main Mar 26, 2024
2 checks passed
@ChefMist ChefMist deleted the feat/deploy-v4-periphery branch March 26, 2024 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants