From 28240851f39c1daab288c64bad33b6bf76896630 Mon Sep 17 00:00:00 2001 From: skojenov Date: Fri, 3 Jun 2022 01:07:27 +0000 Subject: [PATCH] remaining_accounts compile. --- .../programs/anchor-contributor/src/lib.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/anchor-contributor/programs/anchor-contributor/src/lib.rs b/anchor-contributor/programs/anchor-contributor/src/lib.rs index a08040e9..3f1dee74 100644 --- a/anchor-contributor/programs/anchor-contributor/src/lib.rs +++ b/anchor-contributor/programs/anchor-contributor/src/lib.rs @@ -249,13 +249,12 @@ pub mod anchor_contributor { Ok(()) } - /* - pub fn claim_refund(ctx: Context) -> Result<()> { - Ok(()) - } - */ + // pub fn claim_refund(ctx: Context) -> Result<()> { + // Ok(()) + // } - pub fn claim_refund(ctx: Context) -> Result<()> { + + pub fn claim_refund<'a, 'b, 'c, 'info>(ctx: Context<'a, 'b, 'c, 'info, ClaimRefund<'info>>) -> Result<()> { let sale = &mut ctx.accounts.sale; require!(sale.is_aborted(), ContributorError::SaleNotAborted);