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

revive: Make salt salt optional to allow for CREATE1 semantics #5556

Merged
merged 7 commits into from
Sep 3, 2024

Conversation

athei
Copy link
Member

@athei athei commented Sep 2, 2024

Before we only supported CREATE2 semantics for contract address derivations. In order to be compatible we also want to allow CREATE1 semantics. We accomplish this to make the salt an Option in all places where it is used. Supplying None will use CREATE1 semantics by just using the deployers account nonce.

Todo

  • Add new tests specific for CREATE1

@athei athei requested a review from pgherveou September 2, 2024 22:17
@athei athei changed the title revive: Make salt salt optional to allow for CREATE1 semantics WIP: revive: Make salt salt optional to allow for CREATE1 semantics Sep 3, 2024
@athei athei added the R0-silent Changes should not be mentioned in any release notes label Sep 3, 2024
@athei
Copy link
Member Author

athei commented Sep 3, 2024

Setting the silent label before we reach 1.0. Otherwise we will spam the changelog with a lot of useless messages before the pallet is even useable.

prdoc is still necessary so that the pallet version can be bumped and released.

@athei athei enabled auto-merge September 3, 2024 10:04
@athei athei changed the title WIP: revive: Make salt salt optional to allow for CREATE1 semantics revive: Make salt salt optional to allow for CREATE1 semantics Sep 3, 2024
@athei athei added this pull request to the merge queue Sep 3, 2024
Merged via the queue into master with commit 020cda3 Sep 3, 2024
179 of 185 checks passed
@athei athei deleted the at/address-derive branch September 3, 2024 10:59
x3c41a pushed a commit that referenced this pull request Sep 4, 2024
Before we only supported CREATE2 semantics for contract address
derivations. In order to be compatible we also want to allow CREATE1
semantics. We accomplish this to make the salt an `Option` in all places
where it is used. Supplying `None` will use CREATE1 semantics by just
using the deployers account nonce.

## Todo
- [x] Add new tests specific for CREATE1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants