I used a package called @project-serum/sol-wallet-adapter and I want to use createMint() and mintTo() functions in @solana/spl-token. The problem is that I can't get the feePayer or the Signer in order to make createMint() work.
Code (what I need):
const mint = await Token.createMint(
connection,
wallet, // I need this signer which i cannot get from @project-serum/sol-wallet-adapter
wallet.publicKey,
wallet.publicKey,
9,
TOKEN_PROGRAM_ID
);
// Everything else is good
If anybody can tell me a solution, that would be great!