Closed cjohansen11 closed 2 years ago
Hi there 👋
That's a good point, the payer should be set there as well.
However, I suspect this is happening to you because you don't have an "identity" set up in your Metaplex instance because the SDK will default to making the current identity the fee payer for all transactions.
This should now be fixed for printNewEdition
in version 0.11.4
. 🚀
Awesome, thanks so much! 🙌🏼
I believe there is an issue with the
printNewEdition
method due to thepayer
not being set properly for theTransactionBuilder
.Issue
The
printNewEdition
method accepts apayer
as part of thePrintNewEditionSharedInput
. When the transaction is build thatpayer
is not converted to the requiredfeePayer
that theTransactionBuilder
requires so it gets set to undefined and fails.Possible Solution
I haven't messed around with the code base much but a possible solution would be to call the
setFeePayer
method on line 320 whenTransactionBuilder.make()
is called similar to how it is called in thecreateMint
method...TransactionBuilder.make().setFeePayer(payer)