(cherry picked from commit 29bf1e2529
)
Co-authored-by: Justin Kat <601027+Jkat@users.noreply.github.com>
This commit is contained in:
@ -286,7 +286,7 @@ Note that the address generated using `create_program_address` is not guaranteed
|
|||||||
to be a valid program address off the curve. For example, let's assume that the
|
to be a valid program address off the curve. For example, let's assume that the
|
||||||
seed `"escrow2"` does not generate a valid program address.
|
seed `"escrow2"` does not generate a valid program address.
|
||||||
|
|
||||||
To generate a valid program address using `"escrow2` as a seed, use
|
To generate a valid program address using `"escrow2"` as a seed, use
|
||||||
`find_program_address`, iterating through possible bump seeds until a valid
|
`find_program_address`, iterating through possible bump seeds until a valid
|
||||||
combination is found. The preceding example becomes:
|
combination is found. The preceding example becomes:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user