Skip to content

Instantly share code, notes, and snippets.

@1Firsts
Created February 2, 2022 03:22
Show Gist options
  • Save 1Firsts/5c10d10b65962f130f60554b85511e3a to your computer and use it in GitHub Desktop.
Save 1Firsts/5c10d10b65962f130f60554b85511e3a to your computer and use it in GitHub Desktop.
Amount left to be collected, using msg
let mut campaign_account_data = CampaignAccount::try_from_slice(&campaign_account.data.borrow())?;
msg!("{}",campaign_account_data.campaign_amount - campaign_account_data.campaign_fulfilled);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment