Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes #262

Merged
merged 3 commits into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions content/evm/building-a-frontend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ These values will be used in the app to query and execute a contract.
Replace your main `App` component with the following:

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

const signer = await provider.getSigner();
const contract = getWasmPrecompileEthersV6Contract(signer);
Expand Down
4 changes: 2 additions & 2 deletions content/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ import Image from 'next/image';
</div>

<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<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">
<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">
<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">
<IconWallet className="h-5 w-5 text-neutral-800 dark:text-neutral-300 group-hover:text-white transition-colors" />
</div>
Expand All @@ -112,7 +112,7 @@ import Image from 'next/image';
</div>
</a>

<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">
<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">
<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">
<IconBook className="h-5 w-5 text-neutral-800 dark:text-neutral-300 group-hover:text-white transition-colors" />
</div>
Expand Down
3 changes: 2 additions & 1 deletion public/assets/header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/header.webp
Binary file not shown.