Skip to content

Commit 42f4aaf

Browse files
committed
Improved a useTransact code example in docs.
1 parent 6679b40 commit 42f4aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/docs/useTransact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Transaction } from '@mysten/sui/transactions'
1616
function MyComponent() {
1717
const { transact } = useTransact({
1818
onBeforeStart: () => console.log('Transaction starting...'),
19-
onSuccess: (data) => console.log('Transaction succeeded:', data),
19+
onSuccess: (data, response) => console.log('Transaction succeeded:', data, response),
2020
onError: (e) => console.error('Transaction failed:', e),
2121
waitForTransactionOptions: {
2222
showEffects: true,

0 commit comments

Comments
 (0)