From 7c84580863a6e9daea838e0771774173ed9f3606 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 16 Mar 2023 18:39:33 +0300 Subject: [PATCH] add registered_at_height field to RegisteredQuery --- contracts/neutron_interchain_queries/src/testing/tests.rs | 1 + packages/neutron-sdk/src/bindings/types.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/contracts/neutron_interchain_queries/src/testing/tests.rs b/contracts/neutron_interchain_queries/src/testing/tests.rs index 2b454a89..59d6e59a 100644 --- a/contracts/neutron_interchain_queries/src/testing/tests.rs +++ b/contracts/neutron_interchain_queries/src/testing/tests.rs @@ -68,6 +68,7 @@ fn build_registered_query_response( amount: Uint128::from_str("100").unwrap(), }]), submit_timeout: 0, + registered_at_height: 0, }, }; match param { diff --git a/packages/neutron-sdk/src/bindings/types.rs b/packages/neutron-sdk/src/bindings/types.rs index cb7cdab9..10f4d614 100644 --- a/packages/neutron-sdk/src/bindings/types.rs +++ b/packages/neutron-sdk/src/bindings/types.rs @@ -51,6 +51,9 @@ pub struct RegisteredQuery { /// The remote chain last block height when the query result was updated. #[serde(default)] pub submit_timeout: u64, + /// The local chain height when the query was registered. + #[serde(default)] + pub registered_at_height: u64, } /// InterchainQueryResult is a result data for a registered query