Closed mcintyre94 closed 1 week ago
Latest commit: c60e5ba30f7cea9319f71149705e0d1bf54d06a9
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
Currently when an instruction creator is called, it hardcodes the
programAddress
part of the program to the program that the client is being rendered for. This PR adds a new optionalconfig
parameter to instruction creators, which can be used to override theprogramAddress
. For example:This is useful when there are multiple programs with compatible instructions, for example in the case of token and token22. In these cases, when dealing with these compatible instructions, you can now re-use the
token
client and just change theprogramAddress
of the generated instructions.