Skip to content

Switch Level Instance Deployment Fails #837

@Hazem-dh

Description

@Hazem-dh

Switch Level Instance Deployment Fails

Description

The Switch level instance cannot be deployed. The deployment transaction reverts, and the frontend throws an error when interacting with MetaMask.

Steps to Reproduce

  1. Open the Switch level page
  2. Connect wallet using MetaMask
  3. Attempt to deploy a new instance
  4. Transaction fails and the instance is not deployed

Expected Behavior

The Switch level instance should deploy successfully and be usable.

Actual Behavior

The deployment transaction reverts and the frontend crashes with a runtime error.

Console Errors

inpage.js:1 MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future.
Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.
For more information, see: https://eips.ethereum.org/EIPS/eip-1193

inpage.js:1 MetaMask - RPC Error: execution reverted 
{
  code: 3,
  message: 'execution reverted',
  data: {…},
  stack: '{ "code": 3, "message": "execution reverted", … }'
}

reason.js:41 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'return')
    at S.l (inpage.js:1:10229)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions