Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Sep 19, 2024
1 parent abe70bf commit 9e07070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/consumer/converter/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ pub fn ibc_packet_receive(
contract.transfer_rewards(deps.as_ref(), recipient.clone(), rewards.clone())?;
let event = Event::new("mesh-transfer-rewards")
.add_attribute("recipient", &recipient)
.add_attribute("rewards", &rewards.amount.to_string());
.add_attribute("rewards", rewards.amount.to_string());
let ack = ack_success(&TransferRewardsAck {})?;
IbcReceiveResponse::new()
.set_ack(ack)
Expand Down
4 changes: 2 additions & 2 deletions contracts/provider/external-staking/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ impl ExternalStakingContract<'_> {

for ((user, validator), stake) in stakes.iter() {
let mut new_stake = stake.clone();
let amount = new_stake.stake.low().clone();
let amount = new_stake.stake.low();
let unbond = PendingUnbond {
amount,
release_at: env.block.time,
Expand All @@ -525,7 +525,7 @@ impl ExternalStakingContract<'_> {

let mut distribution = self
.distribution
.may_load(deps.storage, &validator)?
.may_load(deps.storage, validator)?
.unwrap_or_default();
new_stake
.points_alignment
Expand Down

0 comments on commit 9e07070

Please sign in to comment.