I'm playing around with Solana Playground using this example - https://beta.solpg.io/6570e5b7fb53fa325bfd0c4e and what I'm trying to do is burn some of the locked token fees, I'm doing it at this check(on row 202 from Playground link):
if (transferFeeAmount !== null && transferFeeAmount.withheldAmount > 0) { try { const result = await burn( connection, payer, account.address, mint, account.owner, transferFeeAmount.withheldAmount, undefined, undefined, TOKEN_2022_PROGRAM_ID ) console.log('res: ', result) }catch (e){ console.log('error is: ', e) } accountsToWithdrawFrom.push(accountInfo.pubkey); // Add account to withdrawal list }
issue seems to be coming from the 5th argument the owner
I'm lost as of what the value of it should be, tried payer.pubkey
, payer
and whatnot. Any pointers would be appreciated.