Skip to content

Conversation

@0xmaayan
Copy link
Contributor

@0xmaayan 0xmaayan commented Jan 29, 2026

Update useStorageAccount calls to use the new simplified API from @shelby-protocol/solana-kit/react.

Changes

Before:

const { storageAccountAddress } = useStorageAccount({
  client: shelbyClient,
  solanaAddress: wallet?.account.address.toString(),
  signMessageFn: wallet?.signMessage,
});

After:

const { storageAccountAddress } = useStorageAccount({
  client: shelbyClient,
  wallet,
});

Files changed

  • app/components/wallet-button.tsx
  • app/components/file-upload.tsx

Ref: https://docs.shelby.xyz/sdks/solana-kit/react


Note

Low Risk
Low risk example-app update: primarily adapts hook call sites to a new @shelby-protocol/solana-kit/react API and refreshes generated IDL/type artifacts, with no on-chain logic changes.

Overview
Updates the token-gated Solana example to the new useStorageAccount API by passing the connected wallet directly (instead of solanaAddress/signMessageFn) in file-upload.tsx and wallet-button.tsx.

Adds a README note clarifying ACE is a temporary access-control mechanism, and refreshes Anchor-generated IDL/type helper outputs plus minor formatting cleanups in config/encryption helpers.

Written by Cursor Bugbot for commit 4fdc0d1. This will update automatically on new commits. Configure here.

Update useStorageAccount calls to use the new simplified API that accepts
wallet directly instead of separate solanaAddress and signMessageFn params.

Ref: https://docs.shelby.xyz/sdks/solana-kit/react
@0xmaayan 0xmaayan force-pushed the fix/token-gated-solana-kit-api branch from 852c286 to 4fdc0d1 Compare January 29, 2026 23:22
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.

3 participants