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: Remove hardcoded require statement inside of module (esm) code. #309

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

richtera
Copy link
Collaborator

What kind of change does this PR introduce (bug fix, feature, docs update, ...)?

There was a

/* eslint-disable-next-line */
const HttpProvider = require("web3-providers-http");

in the code which is illegal in a esm module.

What is the current behaviour (you can also link to an open issue here)?

When using a true esm compiler like esbuild or bun the require function will no longer be defined
in the esm (module) context.

What is the new behaviour (if this is a feature change)?

It will work in cjs and esm

Other information:

https://app.clickup.com/t/2645698/DEV-8268

Copy link
Contributor

@Hugoo Hugoo left a comment

Choose a reason for hiding this comment

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

wow - interesting - i guess there was a reason ?

weird

@Hugoo
Copy link
Contributor

Hugoo commented Sep 21, 2023

Waiting for @skimaharvey answer in our chat before merging

@CJ42 CJ42 merged commit 4ab134b into ERC725Alliance:develop Oct 5, 2023
2 checks 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.

5 participants