From eaea0a9bffd5ae192ead0dd9da2f91c21783b123 Mon Sep 17 00:00:00 2001 From: gluax <16431709+gluax@users.noreply.github.com> Date: Wed, 27 Nov 2024 06:08:07 -0800 Subject: [PATCH] chore: update cosmwasm --- Cargo.toml | 8 ++++---- .../common/src/msgs/staking/query/is_executor_eligible.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1559b7c..207895a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,9 @@ members = ["crates/common", "crates/proto-common"] [workspace.dependencies] base64 = "0.22.1" cosmos-sdk-proto = { version = "0.26", default-features = false } -cosmwasm-schema = "1.5" -cosmwasm-std = "1.5" -cw-storage-plus = "1.2.0" +cosmwasm-schema = "2.1" +cosmwasm-std = "2.1" +cw-storage-plus = "2.0" hex = "0.4.3" k256 = "0.13" lazy_static = "1.5.0" @@ -18,5 +18,5 @@ sha3 = "0.10" semver = { version = "1.0", features = ["serde"] } serde = "1.0" serde_json = "1.0" -thiserror = "1.0" +thiserror = "2.0" vrf-rs = "0.0.0" diff --git a/crates/common/src/msgs/staking/query/is_executor_eligible.rs b/crates/common/src/msgs/staking/query/is_executor_eligible.rs index a6abd4b..ff81398 100644 --- a/crates/common/src/msgs/staking/query/is_executor_eligible.rs +++ b/crates/common/src/msgs/staking/query/is_executor_eligible.rs @@ -81,7 +81,7 @@ impl QueryFactory { #[cfg(feature = "cosmwasm")] pub(crate) fn encode_data(data: &str) -> Bytes { use cosmwasm_std::Binary; - Binary(data.as_bytes().to_vec()) + Binary::new(data.as_bytes().to_vec()) } pub fn create_message(self, proof: Vec) -> (crate::msgs::QueryMsg, Bytes) {