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

Sepolia deploy #15

Merged
merged 5 commits into from
Apr 15, 2024
Merged

Sepolia deploy #15

merged 5 commits into from
Apr 15, 2024

Conversation

filipviz
Copy link
Contributor

@filipviz filipviz commented Apr 9, 2024

I used a zero address for _oldHandle in the Sepolia deploy script. Is that fine @drgorillamd ?

@filipviz filipviz requested a review from simon-something April 9, 2024 17:06
@filipviz filipviz force-pushed the deployment/sepolia branch from a956570 to d5d7a15 Compare April 9, 2024 20:18
@filipviz
Copy link
Contributor Author

filipviz commented Apr 9, 2024

Working now


// Have to use its own address as the `_oldHandle`.
// TODO: UPDATE THIS EACH TIME YOU DEPLOY.
address willBeDeployedAt = _addressFrom(0xfAb4c9E48EB050E8f51555Ef949a7ef1b8fb263B, 0);
Copy link
Member

Choose a reason for hiding this comment

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

what's this address? It should be the deployer, so msg.sender should be good (as for the nonce, use vm.getNonce(deployer address)?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used this suggestion like so:

    address willBeDeployedAt = _addressFrom(msg.sender, vm.getNonce(msg.sender));

And it didn't work when I tried it locally on an anvil fork of sepolia. I also tried using nonce + 1 – also did not work.

If you can get it working, please do! Otherwise I think it's fine to just update the address on new deployments.

@filipviz filipviz merged commit c577362 into main Apr 15, 2024
1 check passed
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