Skip to content

Commit

Permalink
ref: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bidzyyys committed Dec 12, 2024
1 parent 55a9bdf commit eaeacf1
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions examples/erc20-flash-mint/tests/erc20-flash-mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ async fn flash_fee_reverts_on_unsupported_token(alice: Account) -> Result<()> {
Ok(())
}


#[e2e::test]
async fn flash_loan_reverts_when_loan_amount_greater_than_max_loan(
alice: Account,
Expand Down Expand Up @@ -306,20 +305,20 @@ async fn flash_loan_reverts_when_invalid_receiver(
);
}

// let err = send!(erc20.flashLoan(
// borrower_addr,
// erc20_addr,
// U256::from(1),
// vec![].into()
// ))
// .expect_err("should revert with `ERC3156InvalidReceiver`");

// assert!(
// err.reverted_with(Erc20FlashMint::ERC3156InvalidReceiver {
// receiver: borrower_addr
// }),
// "receiver: {borrower_addr}"
// );
// let err = send!(erc20.flashLoan(
// borrower_addr,
// erc20_addr,
// U256::from(1),
// vec![].into()
// ))
// .expect_err("should revert with `ERC3156InvalidReceiver`");

// assert!(
// err.reverted_with(Erc20FlashMint::ERC3156InvalidReceiver {
// receiver: borrower_addr
// }),
// "receiver: {borrower_addr}"
// );

Ok(())
}
Expand Down Expand Up @@ -376,4 +375,4 @@ async fn flash_loan_with_fee_and_fee_receiver(alice: Account) -> Result<()> {
assert_eq!(U256::ZERO, balance);

Ok(())
}
}

0 comments on commit eaeacf1

Please sign in to comment.