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

feature/upgrade ethers to v5 #223

Merged
merged 8 commits into from
Aug 26, 2021
Merged

Conversation

JGiter
Copy link
Collaborator

@JGiter JGiter commented Jul 30, 2021

  • updated ethers and ethers-dependent packages - @ew-did-registry/* and @energyweb/iam-contracts
  • according with new design of did registry identity owner created based on provider type
  • contract types are generated by iam-lib
  • isBrowser state variable repalced by executionEnvironment as more clear. Also environment detection is corrected

@JGiter JGiter self-assigned this Jul 30, 2021
@JGiter JGiter force-pushed the feature/ICL-57_upgrade_ethers_to_v5 branch 2 times, most recently from 0b6d014 to 75c08c8 Compare August 17, 2021 11:50
@JGiter JGiter force-pushed the feature/ICL-57_upgrade_ethers_to_v5 branch from 75c08c8 to f81076f Compare August 17, 2021 12:00
@JGiter JGiter marked this pull request as ready for review August 18, 2021 11:17
if (!rpcUrl) {
throw new Error(ERROR_MESSAGES.NO_RPC_URL);
if (!privateKey || !rpcUrl) {
throw new Error(ERROR_MESSAGES.CONNECTION_OPTIONS_IN_NODE_NOT_PROVIDED);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm thinking that it might probably be best to let the user know what is missing rather making the error message too generic.

Copy link
Contributor

Choose a reason for hiding this comment

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

@ahmedolaibrahim I am thinking if this is the case when lib is not executing in browser !this._runningInBrowser , then how we are going to send a message to user end? or is there a need to do it in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

@hrachocode so what I am referring to is that the error messages for when privateKey is missing should be diff from the error message for when rpcUrl is missing. that way the user knows what to change rather than guessing which is missing.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, agree then.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

@JGiter JGiter requested a review from ahmedolaibrahim August 25, 2021 15:53
@JGiter JGiter merged commit 2cd356f into develop Aug 26, 2021
@Harasz Harasz deleted the feature/ICL-57_upgrade_ethers_to_v5 branch January 31, 2022 14:16
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