diff --git a/contracts/stellar-interchain-token-service/src/contract.rs b/contracts/stellar-interchain-token-service/src/contract.rs index 0b9e990c..c8551753 100644 --- a/contracts/stellar-interchain-token-service/src/contract.rs +++ b/contracts/stellar-interchain-token-service/src/contract.rs @@ -479,7 +479,7 @@ impl InterchainTokenService { env: &Env, token_id: BytesN<32>, ) -> Result { - let config = Self::token_id_config(env, token_id.clone())?; + let config = Self::token_id_config(env, token_id)?; Ok(config) } diff --git a/contracts/stellar-interchain-token-service/src/flow_limit.rs b/contracts/stellar-interchain-token-service/src/flow_limit.rs index 61fbdf49..f8a7d92e 100644 --- a/contracts/stellar-interchain-token-service/src/flow_limit.rs +++ b/contracts/stellar-interchain-token-service/src/flow_limit.rs @@ -74,7 +74,7 @@ impl FlowDirection { // Equivalent to flow_amount + flow - reverse_flow <= flow_limit ensure!(new_flow <= max_allowed, ContractError::FlowLimitExceeded); - self.update_flow(env, token_id.clone(), new_flow); + self.update_flow(env, token_id, new_flow); Ok(()) }