diff --git a/test-cases/token-interface-events/token-interface-events-1/remediated-example/src/lib.rs b/test-cases/token-interface-events/token-interface-events-1/remediated-example/src/lib.rs index 99c947da..5417416e 100644 --- a/test-cases/token-interface-events/token-interface-events-1/remediated-example/src/lib.rs +++ b/test-cases/token-interface-events/token-interface-events-1/remediated-example/src/lib.rs @@ -107,8 +107,8 @@ impl TokenInterfaceEvents { env.storage().instance().set( &DataKey::AllowanceFromSpender(from.clone(), spender.clone()), &AllowanceFromSpender { - amount: amount, - expiration_ledger: expiration_ledger.clone(), + amount, + expiration_ledger, }, ); TokenUtils::new(&env) diff --git a/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/lib.rs b/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/lib.rs index cdd84d32..44f752e0 100644 --- a/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/lib.rs +++ b/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/lib.rs @@ -5,7 +5,6 @@ use soroban_sdk::{ }; use soroban_sdk::token::TokenInterface; -use soroban_token_sdk::TokenUtils; #[derive(Clone, Debug)] #[contracttype] diff --git a/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/test.rs b/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/test.rs index 403b6341..a55f91c4 100644 --- a/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/test.rs +++ b/test-cases/token-interface-events/token-interface-events-1/vulnerable-example/src/test.rs @@ -1,6 +1,3 @@ -#![cfg(test)] -extern crate std; - use super::*; use soroban_sdk::testutils::{Address as _, Ledger}; use soroban_sdk::{Address, Env};