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

Move to foundry #130

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Move to foundry #130

merged 2 commits into from
Jun 24, 2024

Conversation

3esmit
Copy link
Member

@3esmit 3esmit commented Jun 19, 2024

No description provided.

Copy link
Member

@0x-r4bbit 0x-r4bbit left a comment

Choose a reason for hiding this comment

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

Really nice work.
I've added some inline comments.

Will help you address them now.

.github/scripts/rename.sh Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/create.yml Outdated Show resolved Hide resolved
.gitmodules Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
script/Deploy.s.sol Outdated Show resolved Hide resolved
test/UsernameRegistrar.t.sol Show resolved Hide resolved
@0x-r4bbit
Copy link
Member

This PR needs adjustment of the deploy script.
Now that CI is green, I'll take care of that next.

string public constant PARENT_REGISTRY_ENV_KEY = "PARENT_REGISTRY";

function run() public returns (UsernameRegistrar registrar, DeploymentConfig deploymentConfig) {
address parentRegistry = vm.envOr({ name: PARENT_REGISTRY_ENV_KEY, defaultValue: address(0) });
Copy link
Member

Choose a reason for hiding this comment

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

@3esmit With this we can run a migration script via:

PARENT_REGISTRY="0x...." forge script scripts/Deploy.s.sol --rpc-url $RPC_URL

I still kept a runMigration() function for tests.

@3esmit 3esmit merged commit 1974105 into master Jun 24, 2024
8 checks passed
@3esmit 3esmit mentioned this pull request Jun 24, 2024
4 tasks
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.

None yet

2 participants