From 903bac5d188950189547cdb1ebeaf3d8b0bfbe9e Mon Sep 17 00:00:00 2001 From: elizabeth Date: Wed, 11 Sep 2024 13:58:58 -0400 Subject: [PATCH] put full height string --- crates/relayer/src/chain/astria/endpoint.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/crates/relayer/src/chain/astria/endpoint.rs b/crates/relayer/src/chain/astria/endpoint.rs index a316b17363..8f76e72ef3 100644 --- a/crates/relayer/src/chain/astria/endpoint.rs +++ b/crates/relayer/src/chain/astria/endpoint.rs @@ -732,11 +732,12 @@ impl ChainEndpoint for AstriaEndpoint { .into_request(); let height = match request.height { - QueryHeight::Latest => 0, - QueryHeight::Specific(h) => h.revision_height(), + QueryHeight::Latest => 0.to_string(), + QueryHeight::Specific(h) => h.to_string(), }; + req.metadata_mut() - .insert("height", height.to_string().parse().expect("valid ascii")); + .insert("height", height.parse().expect("valid ascii")); let response = self .block_on(client.client_state(req)) @@ -1177,14 +1178,14 @@ impl ChainEndpoint for AstriaEndpoint { }; let height = match request.height { - QueryHeight::Latest => 0, - QueryHeight::Specific(h) => h.revision_height(), + QueryHeight::Latest => 0.to_string(), + QueryHeight::Specific(h) => h.to_string(), }; let mut request = tonic::Request::new(req); request .metadata_mut() - .insert("height", height.to_string().parse().expect("valid ascii")); + .insert("height", height.parse().expect("valid ascii")); let response = self .block_on(client.packet_receipt(request)) @@ -1248,14 +1249,14 @@ impl ChainEndpoint for AstriaEndpoint { }; let height = match request.height { - QueryHeight::Latest => 0, - QueryHeight::Specific(h) => h.revision_height(), + QueryHeight::Latest => 0.to_string(), + QueryHeight::Specific(h) => h.to_string(), }; let mut request = tonic::Request::new(req); request .metadata_mut() - .insert("height", height.to_string().parse().expect("valid ascii")); + .insert("height", height.parse().expect("valid ascii")); let response = self .block_on(client.packet_acknowledgement(request))