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:
Sturdy 2023-07-06 20:02:32 +02:00 committed by GitHub
parent ac97b4d35d
commit 4f41525a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

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

View File

@ -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"

View File

@ -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}"))
}
}