Skip to content

Commit

Permalink
fix: restriction that allow only mainnet connection removed (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropereiradev authored May 29, 2024
1 parent 8c12dcf commit bec6738
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/evm-connector/src/EvmWalletConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,6 @@ export class EVMWalletConnector extends FuelConnector {
],
});

const wallet_chain_id = await ethProvider.request({
method: 'eth_chainId',
params: [],
});

if (wallet_chain_id !== '0x1') {
await ethProvider.request({
method: 'wallet_switchEthereumChain',
params: [
{
chainId: '0x1',
},
],
});
}

this.emit(this.events.connection, true);

// @ts-ignore
Expand Down

0 comments on commit bec6738

Please sign in to comment.