You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This asset was then transferred to a random wallet. In a separate interaction with the program i tried to burn it using the program_pda account that was set as the permanent burn authority:
This yielded the following error:
Program invoked: Unknown Program (CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d)
Program logged: "Instruction: Burn"
Program logged: "PermanentBurnDelegate: ForceApproved"
Program consumed: 13654 of 164453 compute units
Program returned error: "instruction changed the balance of a read-only account"
which i don't understand because all the accounts are writable.
I thought it might be because the burn deposits sol in the owners account, but that isn't passed in the above burn instruction, so i tried adding the owner as an extra account, but that gave a different error, that the owner wasn't a signer.
My expectation is that the program, designated as the burn authority, should be able to burn any asset, but i'm not sure how.
The text was updated successfully, but these errors were encountered:
We previously had an issue where we were sending the SOL back to the authority, and the authority wasn't writable. At first we accidentally made the owner writable, but later fixed it to be the intended design which is send the SOL back to the payer, which is writable and a signer.
Its a bit confusing since we had multiple changes for this. The PR where we get it into the right state is: #134. I think it could have also been confused by various clients which might have been different from the program.
But at this point it should be fixed, and the funds go back to the payer. Are you still having an issue with this?
Hi, I created an asset with the below code via CPI:
This asset was then transferred to a random wallet. In a separate interaction with the program i tried to burn it using the program_pda account that was set as the permanent burn authority:
This yielded the following error:
Program invoked: Unknown Program (CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d)
Program logged: "Instruction: Burn"
Program logged: "PermanentBurnDelegate: ForceApproved"
Program consumed: 13654 of 164453 compute units
Program returned error: "instruction changed the balance of a read-only account"
which i don't understand because all the accounts are writable.
I thought it might be because the burn deposits sol in the owners account, but that isn't passed in the above burn instruction, so i tried adding the owner as an extra account, but that gave a different error, that the owner wasn't a signer.
My expectation is that the program, designated as the burn authority, should be able to burn any asset, but i'm not sure how.
The text was updated successfully, but these errors were encountered: