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: use static salt for deploy task #228

Closed
wants to merge 4 commits into from

Conversation

cpb8010
Copy link
Contributor

@cpb8010 cpb8010 commented Dec 18, 2024

Description

This is so helpful when testing locally, but carries a little risk that the code is easily front-runnable for ownership

Additional context

Testing the extension is easier when I get the same addresses even after restarting the test node or redeploying unchanged code

cpb8010 and others added 3 commits December 13, 2024 14:17
* chore: attempt to deploy factory via create2

makes testing easier

* fix: salt location

* fix: stop trying to re-create the addresses

Will now start to pull from the factory and compare what's different

* feat: check compare with create2

Finally matches, no idea what the js issue was

* fix: add tests to check each argument

Encoding the beacon address was a trick that's hard to replicate

* fix: remove .only from new test

* fix: remove commented code for testing

This is what proved that create2 was working!

* feat: just use the automatic getters

I'm keeping the encoding helper to avoid the ambiguity of the encoding
in javascript, although it's trivial and could be done with the beacon
* chore: link to parent project

Explain that the contracts are still WIP

* fix: update CI action

As suggested to test fixes

---------

Co-authored-by: Nicolas Villanueva <[email protected]>
@cpb8010 cpb8010 self-assigned this Dec 18, 2024
This is so helpful when testing locally, but carries a little risk that
the code is easily front-runnable for ownership
@cpb8010 cpb8010 force-pushed the static-factory-deploy branch from 4422b11 to 941e020 Compare December 19, 2024 08:41
@cpb8010
Copy link
Contributor Author

cpb8010 commented Dec 19, 2024

Something is off with the branch history here, my local branch only has 1 commit after I rebased out the merges

@cpb8010 cpb8010 closed this Dec 19, 2024
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.

2 participants