-
Notifications
You must be signed in to change notification settings - Fork 874
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
Update web3js 4 With Injected provider #4166
Conversation
✅ Deploy Preview for remixproject ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
6134d90
to
cfff5be
Compare
const compiledContracts = await this.call('compilerArtefacts', 'getAllContractDatas') | ||
const injectedError = txExecution.checkError({ errorMessage: errorObj.error, errorData: errorObj.errorData }, compiledContracts) | ||
const injectedError = txExecution.checkError({ errorMessage: errorObj }, compiledContracts) |
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.
Check custom error.
} | ||
|
||
signMessage (message, account, _passphrase, cb) { | ||
const messageHash = hashPersonalMessage(Buffer.from(message)) | ||
try { | ||
message = isHexString(message) ? message : Web3.utils.utf8ToHex(message) | ||
this.executionContext.web3().eth.personal.sign(message, account, (error, signedData) => { | ||
this.executionContext.web3().eth.personal.sign(message, account).then((error, signedData) => { |
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.
This change can be an async await call, since it is in a try catch statement. That way we eliminate duplicate catch functions. Just a suggestion, it doesn't need to be changed.
1e8737e
to
608a921
Compare
608a921
to
5891160
Compare
5891160
to
c8fa9b0
Compare
should fix sending tx with injected & walletconnect.