Skip to content

Commit

Permalink
Small tidy up things (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Jan 10, 2024
1 parent c794712 commit 64219d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion atomic_swap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn move_token(
token.transfer(
&contract_address,
from,
&(&max_spend_amount - &transfer_amount),
&(max_spend_amount - transfer_amount),
);
}

Expand Down
2 changes: 1 addition & 1 deletion fuzzing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl ClaimableBalanceContract {
panic!("deposit amount must not be zero");
}*/

if claimants.len() == 0 {
if claimants.is_empty() {
panic!("need more than 0 claimants");
}
if claimants.len() > 10 {
Expand Down
2 changes: 1 addition & 1 deletion liquidity_pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl LiquidityPoolTrait for LiquidityPool {

put_token_a(&e, token_a);
put_token_b(&e, token_b);
put_token_share(&e, share_contract.try_into().unwrap());
put_token_share(&e, share_contract);
put_total_shares(&e, 0);
put_reserve_a(&e, 0);
put_reserve_b(&e, 0);
Expand Down

0 comments on commit 64219d6

Please sign in to comment.