Sfoglia il codice sorgente

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>
Sturdy 2 anni fa
parent
commit
4f41525a2f

+ 1 - 1
target_chains/cosmwasm/Cargo.lock

@@ -1471,7 +1471,7 @@ dependencies = [
 
 [[package]]
 name = "pyth-sdk-cw"
-version = "1.2.0"
+version = "1.2.1"
 dependencies = [
  "cosmwasm-schema",
  "cosmwasm-std",

+ 1 - 1
target_chains/cosmwasm/sdk/rust/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "pyth-sdk-cw"
-version = "1.2.0"
+version = "1.2.1"
 authors = ["Pyth Data Foundation"]
 edition = "2018"
 license = "Apache-2.0"

+ 1 - 3
target_chains/cosmwasm/sdk/rust/src/error.rs

@@ -76,8 +76,6 @@ pub enum PythContractError {
 
 impl From<PythContractError> for StdError {
     fn from(other: PythContractError) -> StdError {
-        StdError::GenericErr {
-            msg: format!("{other}"),
-        }
+        StdError::generic_err(format!("{other}"))
     }
 }