remaining_accounts compile.

This commit is contained in:
skojenov 2022-06-03 01:07:27 +00:00
parent b519d2d683
commit 28240851f3
1 changed files with 5 additions and 6 deletions

View File

@ -249,13 +249,12 @@ pub mod anchor_contributor {
Ok(())
}
/*
pub fn claim_refund(ctx: Context<ClaimRefund>) -> Result<()> {
Ok(())
}
*/
// pub fn claim_refund(ctx: Context<ClaimRefund>) -> Result<()> {
// Ok(())
// }
pub fn claim_refund(ctx: Context<ClaimRefund>) -> 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);