Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ These values will be used in the app to query and execute a contract.
92
92
Replace your main ` App ` component with the following:
93
93
94
94
``` 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' ;
96
96
import { useEffect , useState } from ' react' ;
97
97
import { BrowserProvider , Contract , toUtf8Bytes , toUtf8String } from ' ethers' ;
98
98
import ' ./App.css' ;
@@ -124,11 +124,6 @@ Replace your main `App` component with the following:
124
124
if (window .ethereum ) {
125
125
const provider = new BrowserProvider (window .ethereum );
126
126
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
- }
132
127
133
128
const signer = await provider .getSigner ();
134
129
const contract = getWasmPrecompileEthersV6Contract (signer );
0 commit comments