Skip to content

docs(tutorials/src20): align frontend hooks with seismic-react API - #305

Open
kutluhaneth46 wants to merge 1 commit into
SeismicSystems:mainfrom
kutluhaneth46:cursor/docs-src20-frontend-hooks-88c1
Open

docs(tutorials/src20): align frontend hooks with seismic-react API#305
kutluhaneth46 wants to merge 1 commit into
SeismicSystems:mainfrom
kutluhaneth46:cursor/docs-src20-frontend-hooks-88c1

Conversation

@kutluhaneth46

Copy link
Copy Markdown

Summary

  • Destructure { contract } from useShieldedContract.
  • Pass write config into useShieldedWriteContract at hook init; writeContract() takes no wagmi-style args.
  • Matches official hook docs and basic-dapp.md.

Testing

  • Docs-only; compared against clients/ts/packages/seismic-react exports and hook reference pages.

Fixes #303

Destructure useShieldedContract correctly and pass write config into
useShieldedWriteContract at hook init instead of wagmi-style args.

Fixes SeismicSystems#303
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.

docs(tutorials/src20): frontend chapter uses incorrect seismic-react hook APIs

1 participant