Skip to content

Commit 413d937

Browse files
Merge pull request #262 from sei-protocol/small-fixes
Small fixes
2 parents 3ec7fbc + f936f08 commit 413d937

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

content/evm/building-a-frontend.mdx

+1-6
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);

content/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ import Image from 'next/image';
102102
</div>
103103

104104
<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">
106106
<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">
107107
<IconWallet className="h-5 w-5 text-neutral-800 dark:text-neutral-300 group-hover:text-white transition-colors" />
108108
</div>
@@ -112,7 +112,7 @@ import Image from 'next/image';
112112
</div>
113113
</a>
114114

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">
116116
<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">
117117
<IconBook className="h-5 w-5 text-neutral-800 dark:text-neutral-300 group-hover:text-white transition-colors" />
118118
</div>

public/assets/header.svg

+2-1
Loading

public/assets/header.webp

-200 KB
Binary file not shown.

0 commit comments

Comments
 (0)