Skip to content

Commit

Permalink
Fixed Clippy errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Helios-vmg committed Oct 31, 2024
1 parent df8e202 commit 57826b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ mod tests {
// Given
let env = Env::default();
let admin = Address::generate(&env);
let token_contract_id = env.register_stellar_asset_contract(admin);
let asset_contract = env.register_stellar_asset_contract_v2(admin);

let contract_id = env.register_contract(None, FrontRunning);
let client = FrontRunningClient::new(&env, &contract_id);
client.init(&token_contract_id);
client.init(&asset_contract.address());

// When
let from = Address::generate(&env);
Expand All @@ -92,7 +92,7 @@ mod tests {
from.clone(),
AuthorizedInvocation {
function: AuthorizedFunction::Contract((
token_contract_id.clone(),
asset_contract.address().clone(),
Symbol::new(&env, "approve"),
(&from, &spender, 200_i128, 200_u32).into_val(&env)
)),
Expand All @@ -111,11 +111,11 @@ mod tests {
// Given
let env = Env::default();
let admin = Address::generate(&env);
let token_contract_id = env.register_stellar_asset_contract(admin);
let asset_contract = env.register_stellar_asset_contract_v2(admin);

let contract_id = env.register_contract(None, FrontRunning);
let client = FrontRunningClient::new(&env, &contract_id);
client.init(&token_contract_id);
client.init(&asset_contract.address());

// When
let token_client = TokenClient::new(&env, &client.get_token());
Expand Down Expand Up @@ -147,11 +147,11 @@ mod tests {
// Given
let env = Env::default();
let admin = Address::generate(&env);
let token_contract_id = env.register_stellar_asset_contract(admin);
let asset_contract = env.register_stellar_asset_contract_v2(admin);

let contract_id = env.register_contract(None, FrontRunning);
let client = FrontRunningClient::new(&env, &contract_id);
client.init(&token_contract_id);
client.init(&asset_contract.address());

// When
let token_client = TokenClient::new(&env, &client.get_token());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ mod tests {
// Given
let env = Env::default();
let admin = Address::generate(&env);
let token_contract_id = env.register_stellar_asset_contract(admin);
let asset_contract = env.register_stellar_asset_contract_v2(admin);

let contract_id = env.register_contract(None, FrontRunning);
let client = FrontRunningClient::new(&env, &contract_id);
client.init(&token_contract_id);
client.init(&asset_contract.address());

// When
let from = Address::generate(&env);
Expand All @@ -91,7 +91,7 @@ mod tests {
from.clone(),
AuthorizedInvocation {
function: AuthorizedFunction::Contract((
token_contract_id.clone(),
asset_contract.address().clone(),
Symbol::new(&env, "approve"),
(&from, &spender, 200_i128, 200_u32).into_val(&env)
)),
Expand All @@ -110,11 +110,11 @@ mod tests {
// Given
let env = Env::default();
let admin = Address::generate(&env);
let token_contract_id = env.register_stellar_asset_contract(admin);
let asset_contract = env.register_stellar_asset_contract_v2(admin);

let contract_id = env.register_contract(None, FrontRunning);
let client = FrontRunningClient::new(&env, &contract_id);
client.init(&token_contract_id);
client.init(&asset_contract.address());

// When
let token_client = TokenClient::new(&env, &client.get_token());
Expand Down

0 comments on commit 57826b0

Please sign in to comment.