Skip to content

Commit

Permalink
fixed the build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugo-X committed Aug 1, 2024
1 parent b4bfa5b commit e9dbd13
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions contracts/abundance/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,17 +251,3 @@ fn test_zero_allowance() {
assert!(token.get_allowance(&from, &spender).is_none());
}

#[test]
fn test_zero_allowance() {
// Here we test that transfer_from with a 0 amount does not create an empty allowance
let e = Env::default();
e.mock_all_auths();

let admin = Address::generate(&e);
let spender = Address::generate(&e);
let from = Address::generate(&e);
let token = create_token(&e, &admin);

token.transfer_from(&spender, &from, &spender, &0);
assert!(token.get_allowance(&from, &spender).is_none());
}

0 comments on commit e9dbd13

Please sign in to comment.