Skip to content

Commit

Permalink
Make getOptions optional on the extraConfig of `useWalletAccount*…
Browse files Browse the repository at this point in the history
…Signer()`
  • Loading branch information
steveluscher committed Jun 13, 2024
1 parent ce876d9 commit 48e1482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function useWalletAccountTransactionSendingSigner<TWalletAccount extends
uiWalletAccount: TWalletAccount,
chain: OnlySolanaChains<TWalletAccount['chains']>,
extraConfig?: Readonly<{
getOptions(transaction: Transaction): Readonly<{ minContextSlot?: bigint }> | undefined;
getOptions?(transaction: Transaction): Readonly<{ minContextSlot?: bigint }> | undefined;
}>,
): TransactionSendingSigner<TWalletAccount['address']> {
const encoderRef = useRef<ReturnType<typeof getTransactionEncoder>>();
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/useWalletAccountTransactionSigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function useWalletAccountTransactionSigner<TWalletAccount extends UiWalle
uiWalletAccount: TWalletAccount,
chain: OnlySolanaChains<TWalletAccount['chains']>,
extraConfig?: Readonly<{
getOptions(transaction: Transaction): Readonly<{ minContextSlot?: bigint }> | undefined;
getOptions?(transaction: Transaction): Readonly<{ minContextSlot?: bigint }> | undefined;
}>,
): TransactionModifyingSigner<TWalletAccount['address']> {
const encoderRef = useRef<ReturnType<typeof getTransactionCodec>>();
Expand Down

0 comments on commit 48e1482

Please sign in to comment.