remaining_accounts compile.
This commit is contained in:
parent
b519d2d683
commit
28240851f3
|
@ -249,13 +249,12 @@ pub mod anchor_contributor {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// pub fn claim_refund(ctx: Context<ClaimRefund>) -> Result<()> {
|
||||||
pub fn claim_refund(ctx: Context<ClaimRefund>) -> Result<()> {
|
// Ok(())
|
||||||
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;
|
let sale = &mut ctx.accounts.sale;
|
||||||
require!(sale.is_aborted(), ContributorError::SaleNotAborted);
|
require!(sale.is_aborted(), ContributorError::SaleNotAborted);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue