Skip to content

Commit

Permalink
Merge pull request #301 from uint/v0.7.x
Browse files Browse the repository at this point in the history
Upgrade packages to cosmwasm 0.15.0
  • Loading branch information
orkunkl authored Jun 28, 2021
2 parents 3678c0c + 3264c72 commit 62916ad
Show file tree
Hide file tree
Showing 29 changed files with 175 additions and 132 deletions.
116 changes: 89 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/controllers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ documentation = "https://docs.cosmwasm.com"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cosmwasm-std = { version = "0.14.0" }
cosmwasm-std = { version = "0.15.0" }
cw0 = { path = "../cw0", version = "0.6.2" }
cw-storage-plus = { path = "../storage-plus", version = "0.6.2", features = ["iterator"] }
schemars = "0.8.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/controllers/src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ impl<'a> Admin<'a> {
self.set(deps, new_admin)?;

Ok(Response {
submessages: vec![],
messages: vec![],
attributes,
events: vec![],
data: None,
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/controllers/src/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl<'a> Claims<'a> {
block: &BlockInfo,
cap: Option<Uint128>,
) -> StdResult<Uint128> {
let mut to_send = Uint128(0);
let mut to_send = Uint128::zero();
self.0.update(storage, addr, |claim| -> StdResult<_> {
let (_send, waiting): (Vec<_>, _) =
claim.unwrap_or_default().iter().cloned().partition(|c| {
Expand Down
4 changes: 2 additions & 2 deletions packages/controllers/src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ impl<'a> Hooks<'a> {
attr("sender", info.sender),
];
Ok(Response {
submessages: vec![],
messages: vec![],
attributes,
events: vec![],
data: None,
})
}
Expand All @@ -111,9 +111,9 @@ impl<'a> Hooks<'a> {
attr("sender", info.sender),
];
Ok(Response {
submessages: vec![],
messages: vec![],
attributes,
events: vec![],
data: None,
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cw0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ documentation = "https://docs.cosmwasm.com"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cosmwasm-std = { version = "0.14.0" }
cosmwasm-std = { version = "0.15.0" }
schemars = "0.8.1"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.21" }
Loading

0 comments on commit 62916ad

Please sign in to comment.