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>
This commit is contained in:
parent
ac97b4d35d
commit
4f41525a2f
|
@ -1471,7 +1471,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pyth-sdk-cw"
|
||||
version = "1.2.0"
|
||||
version = "1.2.1"
|
||||
dependencies = [
|
||||
"cosmwasm-schema",
|
||||
"cosmwasm-std",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}"))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue