Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik committed Jul 4, 2024
1 parent 65dbd75 commit 0c8d644
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions contracts/core/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,23 +780,22 @@ fn execute_tick_peripheral(
) -> ContractResult<Response<NeutronMsg>> {
let mut attrs = vec![attr("action", "tick_peripheral"), attr("knot", "001")];
let res = get_received_puppeteer_response(deps.as_ref())?;
match res {
drop_puppeteer_base::msg::ResponseHookMsg::Success(msg) => match msg.transaction {

if let drop_puppeteer_base::msg::ResponseHookMsg::Success(msg) = res {
match msg.transaction {
drop_puppeteer_base::msg::Transaction::RedeemShares { .. } => {
attrs.push(attr("knot", "038"))
}
drop_puppeteer_base::msg::Transaction::IBCTransfer { reason, .. } => match reason {
IBCTransferReason::LSMShare => {
drop_puppeteer_base::msg::Transaction::IBCTransfer { reason, .. } => {
if reason == IBCTransferReason::LSMShare {
attrs.push(attr("knot", "043"));
}
_ => {}
},
}
drop_puppeteer_base::msg::Transaction::Transfer { .. } => {
attrs.push(attr("knot", "035"));
}
_ => {}
},
_ => {}
}
}
LAST_PUPPETEER_RESPONSE.remove(deps.storage);
FSM.go_to(deps.storage, ContractState::Idle)?;
Expand Down

0 comments on commit 0c8d644

Please sign in to comment.