From 2e35cb96214f62b713a6b5b98e560e3219044aed Mon Sep 17 00:00:00 2001 From: vuong177 Date: Fri, 6 Sep 2024 14:50:36 +0700 Subject: [PATCH] nits --- contracts/consumer/converter/src/ibc.rs | 7 ++++--- contracts/consumer/virtual-staking/src/state.rs | 4 +--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/contracts/consumer/converter/src/ibc.rs b/contracts/consumer/converter/src/ibc.rs index c560237b..e0e38284 100644 --- a/contracts/consumer/converter/src/ibc.rs +++ b/contracts/consumer/converter/src/ibc.rs @@ -193,7 +193,7 @@ pub fn ibc_channel_close( msg: IbcChannelCloseMsg, ) -> Result { let contract = ConverterContract::new(); - let msg = virtual_staking_api::sv::ExecMsg::HandleCloseChannel{}; + let msg = virtual_staking_api::sv::ExecMsg::HandleCloseChannel {}; let msg = WasmMsg::Execute { contract_addr: contract.virtual_stake.load(deps.storage)?.into(), msg: to_json_binary(&msg)?, @@ -260,8 +260,9 @@ pub fn ibc_packet_receive( .add_attribute("rewards", &rewards.amount.to_string()); let ack = ack_success(&TransferRewardsAck {})?; IbcReceiveResponse::new() - .set_ack(ack).add_message(msg) - .add_event(event) + .set_ack(ack) + .add_message(msg) + .add_event(event) } }; Ok(res) diff --git a/contracts/consumer/virtual-staking/src/state.rs b/contracts/consumer/virtual-staking/src/state.rs index 411a2092..dd2373d0 100644 --- a/contracts/consumer/virtual-staking/src/state.rs +++ b/contracts/consumer/virtual-staking/src/state.rs @@ -9,12 +9,10 @@ pub struct Config { /// The address of the converter contract (that is authorized to bond/unbond and will receive rewards) pub converter: Addr, - /// + /// Maximum delegations per query pub max_retrieve: u32, /// If it enable, tombstoned validators will be unbond automatically pub tombstoned_unbond_enable: bool, - /// Maximum delegations per query - pub max_retrieve: u16, }