Fix Switch level deployment failure - Issue #837#840
Fix Switch level deployment failure - Issue #837#840JunaidCD wants to merge 1 commit intoOpenZeppelin:masterfrom
Conversation
… increase gas limit - Replace deprecated sendAsync with modern ethereum.request() method - Add proper error handling for MetaMask signing failures - Increase Switch level instanceGas from 250000 to 1000000 to prevent deployment failures - Add fallback support for older providers Fixes issue OpenZeppelin#837 where Switch level instance deployment fails with transaction reverts and frontend crashes.
|
Thank you for your contribution to OpenZeppelin Ethernaut. Before being able to integrate those changes, we would like you to sign our Contributor License Agreement. I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement First Contributor seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
|
I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement |
Bug Fix Summary
sendAsyncto modernethereum.request()Issue Reference
Fixes #837 where Switch level instance deployment fails with transaction reverts and frontend crashes.
Changes Made
Updated MetaMask integration from deprecated
sendAsyncto modernethereum.request()with proper error handlingIncreased Switch level instanceGas from 250,000 to 1,000,000