This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use anchor_lang::prelude::*; | |
declare_id!("F3cfJcsELoKqwXFViEMPS3MAUSUjwrgLExpwSqLLEphf"); | |
#[program] | |
pub mod rent_return { | |
use super::*; | |
pub fn initialize(ctx: Context<Initialize>) -> Result<()> { | |
ctx.accounts.acc.rent_payer = *ctx.accounts.fee_payer.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as anchor from "@coral-xyz/anchor"; | |
import { Program } from "@coral-xyz/anchor"; | |
import { RentReturn } from "../target/types/rent_return"; | |
import { expect } from "chai"; | |
const { SystemProgram, PublicKey } = anchor.web3; | |
describe("rent_return", () => { | |
// Configure the client to use the local cluster. | |
const provider = anchor.AnchorProvider.env() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use anchor_lang::prelude::*; | |
use mpl_bubblegum::program::Bubblegum; | |
use solana_program::pubkey::Pubkey; | |
use spl_account_compression::{ | |
Noop, program::SplAccountCompression, | |
}; | |
declare_id!("BtuqD66LQtfASw12jDfKGNUSf5g3GwNk9jZFnMwXFruC"); | |
#[program] |