Skip to content

docs: fix useWalletClient usage#365

Merged
pedromcunha merged 1 commit into
relayprotocol:mainfrom
CryptAm:patch-1
Jul 15, 2026
Merged

docs: fix useWalletClient usage#365
pedromcunha merged 1 commit into
relayprotocol:mainfrom
CryptAm:patch-1

Conversation

@CryptAm

@CryptAm CryptAm commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Updated the execute example to destructure data from useWalletClient() instead of passing the full hook result.
  • The execute() action expects a WalletClient, while useWalletClient() returns a hook result object with the client available under data.

This change aligns the example with the expected API and keeps it consistent with the existing getQuote documentation, which already uses the same pattern.

## Changes

* Updated the `execute` example to destructure `data` from `useWalletClient()` instead of passing the full hook result.
* The `execute()` action expects a `WalletClient`, while `useWalletClient()` returns a hook result object with the client available under `data`. 

This change aligns the example with the expected API and keeps it consistent with the existing `getQuote` documentation, which already uses the same pattern.
@pedromcunha
pedromcunha self-requested a review July 15, 2026 12:24
@pedromcunha
pedromcunha merged commit 1a1350a into relayprotocol:main Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants