lib.rs 427 B

12345678910111213141516171819
  1. // This file is autogenerated with https://github.com/acheroncrypto/native-to-anchor
  2. use anchor_lang::prelude::*;
  3. declare_id!("11111111111111111111111111111111");
  4. #[program]
  5. pub mod spl_memo {
  6. use super::*;
  7. pub fn add_memo(ctx: Context<AddMemo>, memo: String) -> Result<()> {
  8. Ok(())
  9. }
  10. }
  11. #[derive(Accounts)]
  12. pub struct AddMemo<'info> {
  13. // All memo accounts are optional and required to be signers
  14. }