Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Jun 28, 2024
1 parent b44de8d commit 7c3384c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/contracts/escrow_library.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ mod EscrowLibrary {
}

fn transfer_from_account(token: ContractAddress, receiver: ContractAddress, amount: u256,) {
// Not tested
assert(IERC20Dispatcher { contract_address: token }.transfer(receiver, amount), 'escr-lib/transfer-failed');
}

Expand Down
2 changes: 0 additions & 2 deletions src/contracts/gift_factory.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,13 @@ mod GiftFactory {
if (gift_token == fee_token) {
let transfer_status = IERC20Dispatcher { contract_address: gift_token }
.transfer_from(get_caller_address(), escrow_contract, gift_amount + fee_amount.into());
// Not tested
assert(transfer_status, 'gift-fac/transfer-failed');
} else {
let transfer_gift_status = IERC20Dispatcher { contract_address: gift_token }
.transfer_from(get_caller_address(), escrow_contract, gift_amount);
assert(transfer_gift_status, 'gift-fac/transfer-gift-failed');
let transfer_fee_status = IERC20Dispatcher { contract_address: fee_token }
.transfer_from(get_caller_address(), escrow_contract, fee_amount.into());
// Not tested
assert(transfer_fee_status, 'gift-fac/transfer-fee-failed');
}
}
Expand Down

0 comments on commit 7c3384c

Please sign in to comment.