Skip to content

Commit

Permalink
Update useSignAndExecuteTransaction.mdx (#18984)
Browse files Browse the repository at this point in the history
`useClient` hook should be renamed to `useSuiClient`
  • Loading branch information
teohaik committed Aug 14, 2024
1 parent 5531298 commit b490bb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ you can pass a custom `execute` function.
```ts
import {
ConnectButton,
useClient,
useSuiClient,
useCurrentAccount,
useSignAndExecuteTransaction,
} from '@mysten/dapp-kit';
import { useState } from 'react';

function MyComponent() {
const client = useClient();
const client = useSuiClient();
const { mutate: signAndExecuteTransaction } = useSignAndExecuteTransaction({
execute: async ({ bytes, signature }) =>
await client.executeTransactionBlock({
Expand Down

0 comments on commit b490bb1

Please sign in to comment.