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:
Sushant Chandla 2023-06-13 23:28:04 +05:30 committed by GitHub
parent 4ce7099b4a
commit d860566f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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(())