Skip to content

Conversation

@adonesky1
Copy link

WIP

@vercel
Copy link

vercel bot commented Jan 7, 2026

@adonesky1 is attempting to deploy a commit to the Consensys Team on Vercel.

A member of the Team first needs to authorize it.

@adonesky1 adonesky1 marked this pull request as draft January 7, 2026 23:03
from: account,
to: account,
value: parseEther("0.01"),
value: parseEther("0.0001"),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to keep these changes. I had to make them because pressing Send ETH causes an eth_estimateGas to fire which fails with an error because my test account doesn't have enough ETH. The error is not surfaced to the dapp/console in a clear way

function rpcUrlToWsUrl(rpcUrl: string) {
if (!rpcUrl) throw new Error("Please configure https endpoint for solana rpc");
// TODO revert back (just temporarily to avoid configuring solana rpc)
if (!rpcUrl) return;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undo this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

this.metamaskInstance = await this.metamaskPromise;
// TODO: Remove this hack
// Hack to ensure the ConnectEvm instance has fully resumed the connection
await new Promise((resolve) => setTimeout(resolve, 2000));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this awful delay to ensure that this async call in the ConnectEvm constructor has fully resolved. We need to fix this on the connect-monorepo side

Comment on lines +226 to +229
// if (options.autoConnect) {
// this.rehydrated = false;
// this.emit(CONNECTOR_EVENTS.REHYDRATION_ERROR, new Error("Failed to resume existing MetaMask Connect session.") as Web3AuthError);
// } else {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this commented code can be dropped?.. Not sure if it's more appropriate to throw an error if we fail to resume a previous session OR if we just say the connector is ready for new connections

Comment on lines +177 to +183
supportedNetworks: {
// Fallback public RPC endpoints if no Infura key is provided
// "eip155:1": "https://eth.llamarpc.com",
"eip155:1": "https://mainnet.infura.io/v3/de3198afe5f44ee99d155c9843001539",
"eip155:5": "https://goerli.infura.io/v3/demo",
"eip155:11155111": "https://sepolia.infura.io/v3/demo",
"eip155:137": "https://polygon-rpc.com",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got cross origin problem when using the web3auth provided rpc urls

@jiexi
Copy link

jiexi commented Jan 20, 2026

Need: MetaMask/connect-monorepo#124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants