Closed kupermind closed 7 months ago
This is NOT a bug, but just a question, as we could not find where we could post it.
There is a stack overflow for Solang: https://solana.stackexchange.com/questions/tagged/solang
Is it possible to calculate the PDA based on a
programId
andseeds
in the solidity code itself.
Thank you so much for such a swift and very spot on reply! Indeed, now I remember seeing the try_find_program_address
function.
Also, thank you for the stack overflow link.
Hi guys,
This is NOT a bug, but just a question, as we could not find where we could post it. Is there a way to check if the account is a PDA one? If not, is it possible to calculate the PDA based on a
programId
andseeds
in the solidity code itself, similar to how it could be done via thefindProgramAddress()
method in TS?Thank you for your reply!