Skip to content

Commit

Permalink
Expose wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbogle committed Feb 7, 2023
1 parent 0c66039 commit 71ddc2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/programs/tokenManager/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { AccountData } from "@cardinal/common";
import {
decodeIdlAccount,
emptyWallet,
findMintEditionId,
findMintMetadataId,
METADATA_PROGRAM_ID,
Expand All @@ -19,7 +18,6 @@ import {
} from "@solana/spl-token";
import type { AccountMeta, Connection } from "@solana/web3.js";
import {
Keypair,
PublicKey,
SystemProgram,
SYSVAR_INSTRUCTIONS_PUBKEY,
Expand Down Expand Up @@ -87,6 +85,7 @@ export const getRemainingAccountsForKind = (
*/
export const getRemainingAccountsForInvalidate = async (
connection: Connection,
wallet: Wallet,
mintId: PublicKey
) => {
const tokenManagerId = findTokenManagerAddress(mintId);
Expand All @@ -111,7 +110,7 @@ export const getRemainingAccountsForInvalidate = async (
return await withRemainingAccountsForInvalidate(
new Transaction(),
connection,
emptyWallet(Keypair.generate().publicKey),
wallet,
mintId,
{ ...tokenManagerData, pubkey: tokenManagerId },
receipientTokenAccount.owner,
Expand Down

0 comments on commit 71ddc2a

Please sign in to comment.