Closed otsalex closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
sommelier-web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 27, 2024 8:02am |
The recent changes primarily focus on enhancing token import functionality and updating the configuration for the wagmi
context by removing dependencies on specific QuickNode API constants. Specifically, the ConnectedPopover
component now uses a safer method for retrieving token addresses and integrates an onClick handler. In the wagmiContext
, QuickNode-related imports have been removed, and the handling of scroll.id
has been simplified to use a default RPC URL.
Files | Change Summary |
---|---|
src/components/_buttons/ConnectButton/ConnectedPopover.tsx |
Added getAddress import, modified handleImportToken to use getAddress , added onClick handler to JSX element. |
src/context/wagmiContext/index.tsx |
Removed references to QUICKNODE_API_KEY and QUICKNODE_API_URL , updated scroll.id handling in wagmiConfig . |
sequenceDiagram
participant User
participant ConnectedPopover
participant wagmiContext
participant TokenAPI
User->>ConnectedPopover: Click import token button
ConnectedPopover->>TokenAPI: Call importToken.mutate with token address and chain
TokenAPI-->>ConnectedPopover: Response (token imported)
ConnectedPopover-->>User: Update UI with import confirmation
In the code we save the day,
With tokens bound in a safer way.
No keys from QuickNode do we see,
Just seamless flows for you and me.
From context deep and buttons bright,
We weave the magic, day and night.
🌟🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Refactor
Chores
QUICKNODE_API_KEY
andQUICKNODE_API_URL
for cleaner configuration.