I am currently building a Next.js application using the Mina fungible token standard, and I am trying to integrate the mint functionality with the Auro wallet. Here are the relevant parts of my implementation:
MintForm Component
Worker Service File
I am running into the following error when attempting to mint tokens:
Couldn't send zkApp command: (invalid ("Authorization kind does not match the authorization" ((expected Signature) (got None_given))))
Context
I am using O1js to create the mint transaction, and the issue seems to stem from signing the transaction with both feePayer and admin private keys. Here is the relevant code snippet:
mintTx.sign([feePayer.privateKey, admin.privateKey]);
This code works perfectly fine when using private keys directly in a script outside of the Auro wallet, like this:
const feePayerPrivateKey = PrivateKey.fromBase58("");
const adminPrivateKey = PrivateKey.fromBase58("");
transaction.sign([feePayerPrivateKey, adminPrivateKey]);
However, I am struggling to achieve the same result when using the Auro wallet. Since both the feePayer and admin are actually the same wallet, is there a way to sign the transaction twice using the Auro wallet?
Any guidance or suggestions on how to handle this scenario with the Auro wallet would be greatly appreciated.
Thank you!