Skip to content

Commit a029ad0

Browse files
committed
refactor(examples/basic): use typed error handling with format_transport_error
- Use format_transport_error() helper for user-friendly error messages - Replace generic error handling with typed Eip1193Error methods - Add user_message() calls for chain switch errors - Improve error logging with error codes
1 parent 4c6a043 commit a029ad0

File tree

2 files changed

+500
-1
lines changed

2 files changed

+500
-1
lines changed

examples/basic/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ leptos.workspace = true
88
leptos_meta.workspace = true
99
leptos_router.workspace = true
1010
leptos-rainbowkit = { path = "../../crates/leptos-rainbowkit" }
11+
alloy.workspace = true
12+
alloy-eip1193 = { path = "../../crates/alloy-eip1193" }
1113
console_log.workspace = true
1214
log.workspace = true
1315
console_error_panic_hook.workspace = true
16+
hex = "0.4"
17+
serde = { version = "1.0", features = ["derive"] }
18+
serde_json.workspace = true
19+
gloo-timers = { version = "0.3", features = ["futures"] }
1420

1521
[profile.release]
1622
opt-level = 'z'

0 commit comments

Comments
 (0)