Closed lorisleiva closed 2 months ago
Latest commit: 0d6b73ba950db38ecdf02386f7e001748b3ddb2a
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This PR generates a new helper function in the JS renderer that wraps
isProgramError
from@solana/programs
such that, the error code type is known and the program address must not be provided.Here's an example using the system program.
Here's another example without passing an explicit code expectation. For it to work with
isProgramError
a type parameter must be provided. With the generated helper, this is no longer needed.