solana: complete token transfer payload docs (#2550)
* solana: complete token transfer payload docs
* undo gitignore change
* undo git ignore change
* Revert "undo git ignore change"
This reverts commit 57a42e8ddf
.
* Update .gitignore
---------
Co-authored-by: Hendrik Hofstadt <1405758+hendrikhofstadt@users.noreply.github.com>
This commit is contained in:
parent
4ce7099b4a
commit
d860566f74
|
@ -81,9 +81,9 @@ impl<'b> RedeemerAccount<'b> {
|
||||||
/// "redeemer".
|
/// "redeemer".
|
||||||
///
|
///
|
||||||
/// That is, the redeemer account either matches the `vaa.to` field directly
|
/// That is, the redeemer account either matches the `vaa.to` field directly
|
||||||
/// (user wallets), or is a PDA derived from vaa.to and "sender" (contracts).
|
/// (user wallets), or is a PDA derived from vaa.to and "redeemer" (contracts).
|
||||||
///
|
///
|
||||||
/// The `vaa.to` account must own the token account.
|
/// The `redeemer` account must own the token account in case of contracts.
|
||||||
fn verify_recipient_address(&self, recipient: &Pubkey) -> Result<()> {
|
fn verify_recipient_address(&self, recipient: &Pubkey) -> Result<()> {
|
||||||
if recipient == self.info().key {
|
if recipient == self.info().key {
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue