Skip to content

Commit

Permalink
Cosmwasm doesn't support f64
Browse files Browse the repository at this point in the history
  • Loading branch information
themicp committed Oct 26, 2023
1 parent 9503c33 commit 752f369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn instantiate(
SYNC_COMMITTEES.save(deps.storage, period, &msg.bootstrap.current_sync_committee)?;

// TODO: Use commit hash or something else
cw2::set_contract_version(deps.storage, "lightclient", "0.1")?;
cw2::set_contract_version(deps.storage, "lightclient", "1")?;

Ok(Response::new())
}
Expand Down Expand Up @@ -120,7 +120,7 @@ pub fn migrate(deps: DepsMut, _env: Env, _msg: Empty) -> Result<Response, Contra
set_contract_version(
deps.storage,
contract_info.contract,
(contract_info.version.parse::<f64>().unwrap() + 0.1).to_string(),
(contract_info.version.parse::<u64>().unwrap() + 1).to_string(),
)?;
Ok(Response::default())
}
Expand Down

0 comments on commit 752f369

Please sign in to comment.