Skip to content

Commit 4f41525

Browse files
fix: Use generic_err constructor instead of literal (#941)
* fix: Use generic_err constructor instead of literal * bump version --------- Co-authored-by: Jayant Krishnamurthy <jayantkrishnamurthy@gmail.com>
1 parent ac97b4d commit 4f41525

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

target_chains/cosmwasm/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_chains/cosmwasm/sdk/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-sdk-cw"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
authors = ["Pyth Data Foundation"]
55
edition = "2018"
66
license = "Apache-2.0"

target_chains/cosmwasm/sdk/rust/src/error.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub enum PythContractError {
7676

7777
impl From<PythContractError> for StdError {
7878
fn from(other: PythContractError) -> StdError {
79-
StdError::GenericErr {
80-
msg: format!("{other}"),
81-
}
79+
StdError::generic_err(format!("{other}"))
8280
}
8381
}

0 commit comments

Comments
 (0)