Skip to content

Commit

Permalink
fix: fixed linter issue on importers
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Dec 8, 2023
1 parent a058d87 commit 51b8429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types/cosmos_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ mod convert_to_any {
MsgVote, MsgVoteWeighted, VoteOption as ProtoVoteOption,
WeightedVoteOption as ProtoWeightedVoteOption,
},
staking::v1beta1::MsgDelegate,
},
cosmwasm::wasm::v1::{
MsgClearAdmin, MsgExecuteContract, MsgInstantiateContract, MsgInstantiateContract2,
Expand All @@ -75,7 +74,6 @@ mod convert_to_any {
};

use cosmwasm_std::{BankMsg, GovMsg, IbcMsg, VoteOption, WasmMsg};

#[cfg(feature = "staking")]
use cosmwasm_std::{DistributionMsg, StakingMsg};

Expand Down Expand Up @@ -271,7 +269,9 @@ mod convert_to_any {

#[cfg(feature = "staking")]
pub fn staking(msg: StakingMsg, from_address: String) -> Result<Any, EncodeError> {
use cosmos_sdk_proto::cosmos::staking::v1beta1::{MsgBeginRedelegate, MsgUndelegate};
use cosmos_sdk_proto::cosmos::staking::v1beta1::{
MsgBeginRedelegate, MsgDelegate, MsgUndelegate,
};

match msg {
StakingMsg::Delegate { validator, amount } => Any::from_msg(&MsgDelegate {
Expand Down

0 comments on commit 51b8429

Please sign in to comment.