-
Notifications
You must be signed in to change notification settings - Fork 25
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 allowlist deploy script & fix existing deploy script [2/2] #127
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adamegyed
force-pushed
the
adam/allowlist-deploy
branch
from
August 1, 2024 21:13
68a95cc
to
99d5a55
Compare
uint256 stakeToAdd = stakeAmount - currentStake; | ||
|
||
if (stakeToAdd > 0) { | ||
console2.log("Adding stake: ", stakeToAdd); | ||
entryPoint.addStake{value: stakeToAdd}(unstakeDelay); |
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.
: |
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.
haha this comment made me realize a mistake - we should use the value stakeToAdd
, not stakeAmount
fangting-alchemy
approved these changes
Aug 1, 2024
Look good. Need to fix tests |
adamegyed
force-pushed
the
adam/allowlist-deploy
branch
from
August 1, 2024 21:40
99d5a55
to
4dc064e
Compare
adamegyed
force-pushed
the
adam/allowlist-update
branch
from
August 1, 2024 23:08
5aa0d70
to
d3922e2
Compare
adamegyed
force-pushed
the
adam/allowlist-deploy
branch
2 times, most recently
from
August 2, 2024 15:11
afc6423
to
6ddbf5b
Compare
adamegyed
force-pushed
the
adam/allowlist-update
branch
from
August 2, 2024 18:01
0886e60
to
ce25904
Compare
adamegyed
force-pushed
the
adam/allowlist-deploy
branch
from
August 2, 2024 18:03
6ddbf5b
to
9a49d23
Compare
adamegyed
added a commit
that referenced
this pull request
Aug 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
To test the use of permission-limiting hooks, we should deploy AllowlistModule. To do that, we need a deploy script.
Also I found some issues in the existing script + factory setup, so fixing those here, too.
Solution
Deploy.s.sol
where the sender was staking with the EntryPoint, instead of the factory.Deploy.s.t.sol
.Deploy.s.sol
fromconsole2
toconsole
- there's no difference anymore.AccountFactory
to take in the unstake delay from the owner's call, rather than specifying this as an immutable.