From 32e114e6b6e2fdc7895125018d03d883fc2a8975 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Mon, 4 Mar 2024 22:14:50 +0100 Subject: [PATCH] feat(logic-bindings)!: match v7 okp4d logic module model --- packages/okp4-logic-bindings/src/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/okp4-logic-bindings/src/query.rs b/packages/okp4-logic-bindings/src/query.rs index b678e984..5a3c1f86 100644 --- a/packages/okp4-logic-bindings/src/query.rs +++ b/packages/okp4-logic-bindings/src/query.rs @@ -18,13 +18,12 @@ pub struct AskResponse { pub height: u64, pub gas_used: u64, pub answer: Option, + pub user_output: Option, } #[derive(Serialize, Deserialize, Default, Clone, PartialEq, Eq, JsonSchema, Debug)] #[serde(rename_all = "snake_case")] pub struct Answer { - pub success: bool, - pub error: Option, pub has_more: bool, pub variables: Vec, pub results: Vec, @@ -33,6 +32,7 @@ pub struct Answer { #[derive(Serialize, Deserialize, Default, Clone, PartialEq, Eq, JsonSchema, Debug)] #[serde(rename_all = "snake_case")] pub struct Result { + pub error: Option, pub substitutions: Vec, }