Skip to content

Commit

Permalink
Nicolas/swaprouter lints and bytecode (#5962)
Browse files Browse the repository at this point in the history
* fixed bytecode

* remove redundant borrow

* updated bytecode
  • Loading branch information
nicolaslara authored Aug 4, 2023
1 parent 6b95426 commit a81cfe3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified tests/ibc-hooks/bytecode/swaprouter.wasm
Binary file not shown.
Binary file modified x/ibc-rate-limit/bytecode/rate_limiter.wasm
Binary file not shown.
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 a81cfe3

Please sign in to comment.