Skip to content

Commit 1b0f38c

Browse files
committed
fix(examples): correct EIP-55 checksums for all addresses in playground examples
- 0x85d80245Dc02f5a89589e1f19C5c718E405B56Aa -> 0x85d80245dc02f5A89589e1f19c5c718E405B56AA - 0x2ed3dddae5b2f321af0806181fbfa6d049be47d8 -> 0x2ED3dddae5B2F321AF0806181FBFA6D049Be47d8 Fixes InvalidAddressError / NodeError: Invalid EVM address format in Balances and ERC-20 Info examples
1 parent c6f48a4 commit 1b0f38c

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

docs-site/components/Playground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
SandpackCodeEditor,
66
SandpackConsole,
77
SandpackPreview,
8-
SandpackLoadingOverlay,
8+
LoadingOverlay,
99
useSandpack,
1010
useSandpackNavigation,
1111
} from '@codesandbox/sandpack-react'
@@ -176,7 +176,7 @@ export function Playground({
176176
position: 'relative',
177177
}}
178178
>
179-
<SandpackLoadingOverlay />
179+
<LoadingOverlay />
180180
<SandpackCodeEditor
181181
showLineNumbers
182182
showInlineErrors

docs-site/content/examples/deploy-token.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (fns.length > 10) console.log(' ... and ' + (fns.length - 10) + ' more')
3434
const TOKEN_NAME = 'Demo Token'
3535
const TOKEN_SYMBOL = 'DEMO'
3636
const TOTAL_SUPPLY = parseUnits('1000000', 18)
37-
const OWNER_ADDR = '0x85d80245Dc02f5a89589e1f19C5c718E405B56Aa'
37+
const OWNER_ADDR = '0x85d80245dc02f5A89589e1f19c5c718E405B56AA'
3838
3939
console.log('-- Deploy Parameters --')
4040
console.log('Name : ' + TOKEN_NAME)

docs-site/content/examples/erc20-info.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Change `TOKEN` to any ERC-20 address on testnet. The default is **WCFX** (Wrappe
1919
"/index.ts": `import { EspaceClient, EVM_TESTNET, ERC20_ABI, formatUnits } from '@cfxdevkit/core'
2020
2121
// WCFX (Wrapped CFX) — always-live ERC-20 on Conflux eSpace testnet
22-
const TOKEN = '0x2ed3dddae5b2f321af0806181fbfa6d049be47d8'
23-
const HOLDER = '0x85d80245Dc02f5a89589e1f19C5c718E405B56Aa'
22+
const TOKEN = '0x2ED3dddae5B2F321AF0806181FBFA6D049Be47d8'
23+
const HOLDER = '0x85d80245dc02f5A89589e1f19c5c718E405B56AA'
2424
const SPENDER = '0x33e5E5B262e5d8eBC443E1c6c9F14215b020554d' // AutomationManager testnet
2525
2626
const client = new EspaceClient({

docs-site/content/examples/read-balance.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ const client = new EspaceClient({
2525
2626
// ── Native CFX balances ──────────────────────────────────────────────────────
2727
const ADDRS = [
28-
'0x85d80245Dc02f5a89589e1f19C5c718E405B56Aa',
28+
'0x85d80245dc02f5A89589e1f19c5c718E405B56AA',
2929
'0x0000000000000000000000000000000000000000',
3030
]
3131
3232
// ── ERC-20 token balance ─────────────────────────────────────────────────────
3333
// WCFX (Wrapped CFX) on Conflux eSpace testnet
34-
const WCFX = '0x2ed3dddae5b2f321af0806181fbfa6d049be47d8'
35-
const HOLDER = '0x85d80245Dc02f5a89589e1f19C5c718E405B56Aa'
34+
const WCFX = '0x2ED3dddae5B2F321AF0806181FBFA6D049Be47d8'
35+
const HOLDER = '0x85d80245dc02f5A89589e1f19c5c718E405B56AA'
3636
3737
;(async () => {
3838
// getBalance() calls eth_getBalance and returns a formatted CFX string

docs-site/content/examples/swap-quote.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ console.log('Mainnet : ' + automationManagerAddress[1030])
4040
console.log('ABI entries: ' + automationManagerAbi.length)
4141
4242
// 4. Live read using standard ABI -- WCFX on testnet
43-
const WCFX = '0x2ed3dddae5b2f321af0806181fbfa6d049be47d8'
43+
const WCFX = '0x2ED3dddae5B2F321AF0806181FBFA6D049Be47d8'
4444
const client = new EspaceClient({ chainId: EVM_TESTNET.id, rpcUrl: EVM_TESTNET.rpcUrls.default.http[0] })
4545
4646
;(async () => {

0 commit comments

Comments
 (0)