Ver código fonte

(fix) Change fortuna error code (#1848)

* (fix) Change fortuna error code

* update

* fortuna update
Aditya Arora 1 ano atrás
pai
commit
64bea90151
3 arquivos alterados com 4 adições e 4 exclusões
  1. 2 2
      apps/fortuna/Cargo.lock
  2. 1 1
      apps/fortuna/Cargo.toml
  3. 1 1
      apps/fortuna/src/api.rs

+ 2 - 2
apps/fortuna/Cargo.lock

@@ -1502,7 +1502,7 @@ dependencies = [
 
 [[package]]
 name = "fortuna"
-version = "6.5.2"
+version = "6.5.3"
 dependencies = [
  "anyhow",
  "axum",
@@ -2841,7 +2841,7 @@ dependencies = [
 
 [[package]]
 name = "pythnet-sdk"
-version = "2.1.0"
+version = "2.3.0"
 dependencies = [
  "bincode",
  "borsh",

+ 1 - 1
apps/fortuna/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name    = "fortuna"
-version = "6.5.2"
+version = "6.5.3"
 edition = "2021"
 
 [dependencies]

+ 1 - 1
apps/fortuna/src/api.rs

@@ -145,7 +145,7 @@ impl IntoResponse for RestError {
             }
             RestError::NoPendingRequest => (
                 StatusCode::FORBIDDEN,
-                "The random value cannot currently be retrieved",
+                "The request with the given sequence number has not been made yet, or the random value has already been revealed on chain.",
             ).into_response(),
             RestError::PendingConfirmation => (
                 StatusCode::FORBIDDEN,