Skip to content

Commit

Permalink
refactor: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed Jun 28, 2023
1 parent aa1354a commit bffaa5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/liquidity_hub/fee_distributor/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn migrate_to_v091(deps: DepsMut) -> Result<Vec<CosmosMsg>, StdError> {
epoch.available = vec![];

// save the faulty epoch in the state
EPOCHS.save(deps.storage, &epoch.id.to_be_bytes(), &epoch)?;
EPOCHS.save(deps.storage, &epoch.id.to_be_bytes(), epoch)?;
}

// create messages to send total_fees back to the fee collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ pub fn migrate(mut deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Respons

check_contract_name(deps.storage, CONTRACT_NAME.to_string())?;

let version: Version = CONTRACT_VERSION.parse()?;
//let version: Version = CONTRACT_VERSION.parse()?;
let storage_version: Version = get_contract_version(deps.storage)?.version.parse()?;

// we remove this block not to bump the version of the contract again as the migration was done
Expand Down

0 comments on commit bffaa5e

Please sign in to comment.