Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nbayindirli committed Feb 6, 2025
1 parent b5e28ae commit 9df5d88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/stellar-interchain-token-service/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl InterchainTokenService {
env: &Env,
token_id: BytesN<32>,
) -> Result<TokenIdConfigValue, ContractError> {
let config = Self::token_id_config(env, token_id.clone())?;
let config = Self::token_id_config(env, token_id)?;

Ok(config)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 9df5d88

Please sign in to comment.