-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
0b6d014
to
75c08c8
Compare
75c08c8
to
f81076f
Compare
src/iam/iam-base.ts
Outdated
if (!rpcUrl) { | ||
throw new Error(ERROR_MESSAGES.NO_RPC_URL); | ||
if (!privateKey || !rpcUrl) { | ||
throw new Error(ERROR_MESSAGES.CONNECTION_OPTIONS_IN_NODE_NOT_PROVIDED); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, agree then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ethers
andethers
-dependent packages -@ew-did-registry/*
and@energyweb/iam-contracts