File tree 4 files changed +5
-9
lines changed
4 files changed +5
-9
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 );
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ import Image from 'next/image';
102
102
</div >
103
103
104
104
<div className = " grid grid-cols-1 md:grid-cols-2 gap-4" >
105
- <a href = " /learn/wallet-setup " className = " group flex items-start no-underline rounded-xl p-5 bg-neutral-900/5 dark:bg-neutral-900/20 border border-neutral-200/50 dark:border-neutral-800/50 hover:bg-white dark:hover:bg-neutral-900 hover:border-neutral-300 dark:hover:border-neutral-700 hover:shadow-md transition-all" >
105
+ <a href = " /learn/wallets " className = " group flex items-start no-underline rounded-xl p-5 bg-neutral-900/5 dark:bg-neutral-900/20 border border-neutral-200/50 dark:border-neutral-800/50 hover:bg-white dark:hover:bg-neutral-900 hover:border-neutral-300 dark:hover:border-neutral-700 hover:shadow-md transition-all" >
106
106
<div className = " w-10 h-10 flex items-center justify-center rounded-lg bg-neutral-900/10 dark:bg-neutral-800/30 mr-4 group-hover:bg-neutral-800 group-hover:text-white transition-colors" >
107
107
<IconWallet className = " h-5 w-5 text-neutral-800 dark:text-neutral-300 group-hover:text-white transition-colors" />
108
108
</div >
@@ -112,7 +112,7 @@ import Image from 'next/image';
112
112
</div >
113
113
</a >
114
114
115
- <a href = " /learn/wallets " className = " group flex items-start no-underline rounded-xl p-5 bg-neutral-900/5 dark:bg-neutral-900/20 border border-neutral-200/50 dark:border-neutral-800/50 hover:bg-white dark:hover:bg-neutral-900 hover:border-neutral-300 dark:hover:border-neutral-700 hover:shadow-md transition-all" >
115
+ <a href = " /learn" className = " group flex items-start no-underline rounded-xl p-5 bg-neutral-900/5 dark:bg-neutral-900/20 border border-neutral-200/50 dark:border-neutral-800/50 hover:bg-white dark:hover:bg-neutral-900 hover:border-neutral-300 dark:hover:border-neutral-700 hover:shadow-md transition-all" >
116
116
<div className = " w-10 h-10 flex items-center justify-center rounded-lg bg-neutral-900/10 dark:bg-neutral-800/30 mr-4 group-hover:bg-neutral-800 group-hover:text-white transition-colors" >
117
117
<IconBook className = " h-5 w-5 text-neutral-800 dark:text-neutral-300 group-hover:text-white transition-colors" />
118
118
</div >
You can’t perform that action at this time.
0 commit comments