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

Update web3js 4 With Injected provider #4166

Merged
merged 10 commits into from
Oct 31, 2023
Merged

Update web3js 4 With Injected provider #4166

merged 10 commits into from
Oct 31, 2023

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Oct 26, 2023

should fix sending tx with injected & walletconnect.

@netlify
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit c8fa9b0
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/654123e8d734080008943836
😎 Deploy Preview https://deploy-preview-4166--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yann300 yann300 added this to In progress in 0.37.0 - Feature Freeze 31/10 - Release 07/11 via automation Oct 26, 2023
@yann300 yann300 added the ready-to-review PR ready to review label Oct 26, 2023
@yann300 yann300 force-pushed the update_web3js_4 branch 2 times, most recently from 6134d90 to cfff5be Compare October 30, 2023 09:41
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)
Copy link
Contributor Author

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) => {
Copy link
Member

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.

0.37.0 - Feature Freeze 31/10 - Release 07/11 automation moved this from In progress to Reviewer approved Oct 31, 2023
@Aniket-Engg Aniket-Engg merged commit 625b343 into master Oct 31, 2023
32 checks passed
0.37.0 - Feature Freeze 31/10 - Release 07/11 automation moved this from Reviewer approved to Done Oct 31, 2023
@Aniket-Engg Aniket-Engg deleted the update_web3js_4 branch October 31, 2023 16:30
@yann300 yann300 mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-review PR ready to review
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants