From 1e9ec9215fe337812c1d352d8bb006d5040382b2 Mon Sep 17 00:00:00 2001 From: Sorin Petreasca Date: Wed, 20 Sep 2023 14:59:50 +0300 Subject: [PATCH] clippy and test fix --- dex/farm-with-locked-rewards/src/lib.rs | 4 ++-- dex/scenarios/merge_tokens.scen.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dex/farm-with-locked-rewards/src/lib.rs b/dex/farm-with-locked-rewards/src/lib.rs index f998d6d1c..c7937d583 100644 --- a/dex/farm-with-locked-rewards/src/lib.rs +++ b/dex/farm-with-locked-rewards/src/lib.rs @@ -192,8 +192,8 @@ pub trait Farm: let locked_rewards_payment = self.send_to_lock_contract_non_zero( self.reward_token_id().get(), boosted_rewards, - caller.clone(), - orig_caller.clone(), + caller, + orig_caller, ); (merged_farm_token, locked_rewards_payment).into() diff --git a/dex/scenarios/merge_tokens.scen.json b/dex/scenarios/merge_tokens.scen.json index 1a0b187cb..ed059f31b 100644 --- a/dex/scenarios/merge_tokens.scen.json +++ b/dex/scenarios/merge_tokens.scen.json @@ -30,7 +30,8 @@ }, "expect": { "out": [ - "0x0000000b4641524d2d6162636465660000000000000003000000040bebc200" + "0x0000000b4641524d2d6162636465660000000000000003000000040bebc200", + "0x0000000c5745474c442d616263646566000000000000000000000000" ], "status": "0", "message": "", @@ -63,4 +64,4 @@ } } ] -} +} \ No newline at end of file