Skip to content

Commit c799a38

Browse files
committedMar 24, 2025
Remove SEI_CHAIN_INFO from EVM frontend tutorial
1 parent 6ce95fb commit c799a38

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎content/evm/building-a-frontend.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ These values will be used in the app to query and execute a contract.
9292
Replace your main `App` component with the following:
9393

9494
```tsx copy filename="App.tsx"
95-
import { WASM_PRECOMPILE_ADDRESS, SEI_CHAIN_INFO, getWasmPrecompileEthersV6Contract } from '@sei-js/evm';
95+
import { WASM_PRECOMPILE_ADDRESS, getWasmPrecompileEthersV6Contract } from '@sei-js/evm';
9696
import { useEffect, useState } from 'react';
9797
import { BrowserProvider, Contract, toUtf8Bytes, toUtf8String } from 'ethers';
9898
import './App.css';
@@ -124,11 +124,6 @@ Replace your main `App` component with the following:
124124
if (window.ethereum) {
125125
const provider = new BrowserProvider(window.ethereum);
126126
const { chainId } = await provider.getNetwork();
127-
const devnetChainId = SEI_CHAIN_INFO.devnet.chainId;
128-
if (chainId !== BigInt(devnetChainId)) {
129-
alert('Wallet is not connected to Sei EVM devnet');
130-
return;
131-
}
132127

133128
const signer = await provider.getSigner();
134129
const contract = getWasmPrecompileEthersV6Contract(signer);

0 commit comments

Comments
 (0)