Skip to content

Commit

Permalink
chore: remove printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
Oshioke-Salaki committed Dec 9, 2024
1 parent fbc4654 commit c8e6665
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/campaign.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,10 @@ mod TokengiverCampaign {
fn donate(
ref self: ContractState, campaign_address: ContractAddress, amount: u256, token_id: u256
) {
println!("Riight here {}", 1);
let donor = get_caller_address();

let token_address = self.strk_address.read();

println!("Riight here {}", 2);

println!(
"Balance -------- {}",
IERC20Dispatcher { contract_address: token_address }.balance_of(donor)
);

IERC20Dispatcher { contract_address: token_address }
.approve(get_contract_address(), amount);

Expand Down
1 change: 0 additions & 1 deletion tests/test_campaign.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ fn test_donate() {
strk_dispatcher.approve(token_giver_address, amount);
stop_cheat_caller_address(strk_address);

println!("Donor balance: {}", strk_dispatcher.balance_of(DONOR()));
// donate
start_cheat_caller_address(token_giver_address, DONOR());
token_giver.donate(campaign_address, amount, random_id);
Expand Down

0 comments on commit c8e6665

Please sign in to comment.