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

mark ethers as a package dependency #501

Merged
merged 1 commit into from
May 23, 2024
Merged

mark ethers as a package dependency #501

merged 1 commit into from
May 23, 2024

Conversation

joewagner
Copy link
Contributor

Overview

Ethers is currently a devDep, but in order to build with typescript this package must have the correct ethers version. This means any package using this and a different version of ethers will not build correctly.

Details

A user reported an issue using ethers v5 and v6 in the same packages here: https://discord.com/channels/592843512312102924/968582612945870878/1242050427982315645
The fix involves publishing a version of this package with ethers as a dep, and then publishing a version of the sdk that uses the new version of this package.

If anyone wants to test this out, I published next tagged versions for both today.
https://www.npmjs.com/package/@tableland/sdk?activeTab=versions
https://www.npmjs.com/package/@tableland/evm?activeTab=versions

The user who reported the issue has a small test app you can use here:
https://github.com/mlegls/tableland-ethers-5-demo/tree/main

@@ -95,6 +94,7 @@
"typescript": "^5.0.2"
},
"dependencies": {
"@openzeppelin/contracts": "4.9.6"
"@openzeppelin/contracts": "4.9.6",
"ethers": "^6.12.0"
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 added a patch bump of @nomicfoundation/hardhat-ethers and a minor bump for @openzeppelin/hardhat-upgrades, but the main change here is adding ethers as a dependency instead of a dev dependency.

@joewagner joewagner marked this pull request as ready for review May 23, 2024 01:43
@joewagner joewagner merged commit 89687b1 into main May 23, 2024
2 checks passed
@joewagner joewagner deleted the joe/ethers-dep branch May 23, 2024 02:03
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.

2 participants