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

fix: Change ethers.utils imports #1915

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Conversation

keithbro-imx
Copy link
Contributor

@keithbro-imx keithbro-imx commented Jun 18, 2024

  • breaking-change: if you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities.
  • feat:, fix:, refactor:, docs:, or chore:.

Summary

Change import for ethers.utils as advised by ethers-io/ethers.js#3179

Some users are reporting the following error when building:

Error: Cannot find module '[..]\node_modules\ethers\lib\utils' imported from [..]\node_modules\@imtbl\sdk\dist\index.js
Did you mean to import "ethers/lib/utils.js"?

Detail and impact of the change

Added

Changed

Deprecated

Removed

Fixed

Security

Anything else worth calling out?

@keithbro-imx keithbro-imx requested a review from a team as a code owner June 18, 2024 01:28
@keithbro-imx keithbro-imx requested review from a team as code owners June 18, 2024 02:01
@keithbro-imx keithbro-imx changed the title fix: Change solidityKeccak256 import fix: Change ethers.utils imports Jun 18, 2024

describe('signRegisterEthAddress()', () => {
test('Correctly signs message', async () => {
const signer = new Wallet('5c7b4b5cad9a3fc7b1ba235a49cd74e615488a18b0d6a531739fd1062935104d');

Choose a reason for hiding this comment

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

small thing: ethers allows you to create random wallets for testing https://docs.ethers.org/v4/api-wallet.html#creating-instances

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh nice, I just copied from the other tests but I would like to use this in future

@keithbro-imx keithbro-imx added this pull request to the merge queue Jun 18, 2024
Merged via the queue into main with commit c3e3981 Jun 18, 2024
12 checks passed
@keithbro-imx keithbro-imx deleted the task/fix-solidityKeccak256-import branch June 18, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants