Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed Sep 6, 2024
1 parent 4e704a2 commit 2e35cb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 4 additions & 3 deletions contracts/consumer/converter/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ pub fn ibc_channel_close(
msg: IbcChannelCloseMsg,
) -> Result<IbcBasicResponse, ContractError> {
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)?,
Expand Down Expand Up @@ -260,8 +260,9 @@ pub fn ibc_packet_receive(
.add_attribute("rewards", &rewards.amount.to_string());

Check failure on line 260 in contracts/consumer/converter/src/ibc.rs

View workflow job for this annotation

GitHub Actions / Test Suite

borrow of moved value: `rewards`
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)
Expand Down
4 changes: 1 addition & 3 deletions contracts/consumer/virtual-staking/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

0 comments on commit 2e35cb9

Please sign in to comment.