Skip to content

Commit

Permalink
make checkTokenAccounts disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolley committed Dec 26, 2023
1 parent 60a9154 commit 2e3bee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/stream/solana/StreamClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,10 @@ export default class SolanaStreamClient extends BaseStreamClient {
*/
private async checkAssociatedTokenAccounts(
data: CheckAssociatedTokenAccountsData,
{ invoker, skipAccountsCheck }: IInteractStreamSolanaExt,
{ invoker, checkTokenAccounts }: IInteractStreamSolanaExt,
ixs: TransactionInstruction[]
) {
if (skipAccountsCheck) {
if (!checkTokenAccounts) {
return;
}
const checkedKeys: Set<PublicKey> = new Set();
Expand Down
2 changes: 1 addition & 1 deletion packages/stream/solana/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface ICreateStreamSolanaExt {

export interface IInteractStreamSolanaExt {
invoker: SignerWalletAdapter | Keypair;
skipAccountsCheck?: boolean;
checkTokenAccounts?: boolean;
}

export interface ITopUpStreamSolanaExt {
Expand Down

0 comments on commit 2e3bee1

Please sign in to comment.