Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslara committed May 15, 2023
1 parent c1189c5 commit a8cce36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/ibc-rate-limit/contracts/rate-limiter/src/sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn process_packet(
#[cfg(test)] channel_value_mock: Option<Uint256>,
) -> Result<Response, ContractError> {
let (channel_id, denom) = packet.path_data(&direction);
let path = &Path::new(&channel_id, &denom);
let path = &Path::new(channel_id, denom);
let funds = packet.get_funds();

#[cfg(test)]
Expand Down Expand Up @@ -144,7 +144,7 @@ fn add_rate_limit_attributes(response: Response, result: &RateLimit) -> Response
pub fn undo_send(deps: DepsMut, packet: Packet) -> Result<Response, ContractError> {
// Sudo call. Only go modules should be allowed to access this
let (channel_id, denom) = packet.path_data(&FlowType::Out); // Sends have direction out.
let path = &Path::new(&channel_id, &denom);
let path = &Path::new(channel_id, &denom);
let any_path = Path::new("any", &denom);
let funds = packet.get_funds();

Expand Down

0 comments on commit a8cce36

Please sign in to comment.