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

Update to ethers v6 #152

Merged
merged 4 commits into from
Jan 13, 2024
Merged

Conversation

compojoom
Copy link
Contributor

Not following the PR guide as this PR is neither a feature, nor a bug fix. So neither of the templates was fiting.

This PR updates ethers.js dependency to the currently latest ethers-v6 - 6.9.2

Implementation

All tests have been adjusted and pass.
Typescript definitions have also been updated.

Additional Context

We need this because we are upgrading the safe-wallet-app to use ethers-v6 (safe-global/safe-wallet-web#3087) and having zodiac rely on ethers-v5 screws with our types and requires us to do some gymnastics around types... Also we end up with BigNumber and bigints and we would just want to move ahead :)

The default value for node was set to 16, but the project was not installable with it.
ts-api-utils@1.0.3 needed at least node 16.13.0 and execa@7.2.0 needed at least 16.14.0, so decided to bump everything to at least 18.
Copy link

github-actions bot commented Jan 11, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@compojoom
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Collaborator

@jfschwarz jfschwarz left a comment

Choose a reason for hiding this comment

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

Thank you for this! 🙏

contracts/Imports.sol Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
Unfortunately there is a bug in typechain and we get some name clashes in the generated code. There is a PR that fixes this, but until it gets merged I’ve added a patch.
More info on the name clash:
dethcrypto/TypeChain#887

Once this PR is merged the patch could be removed.
Copy link
Collaborator

@jfschwarz jfschwarz left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

@jfschwarz jfschwarz merged commit 1a6a489 into gnosisguild:master Jan 13, 2024
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2024
@compojoom compojoom deleted the update_to_ethers_v6 branch January 14, 2024 08:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants