From 11898c4ece5f96c92e59f240167f4f62556a24c8 Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Mon, 8 Jan 2024 13:20:38 +0100 Subject: [PATCH] rusk: change block timestamp to u64 --- rusk/src/lib/http/chain/graphql/data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rusk/src/lib/http/chain/graphql/data.rs b/rusk/src/lib/http/chain/graphql/data.rs index f8fd8a43d1..fedf72af3e 100644 --- a/rusk/src/lib/http/chain/graphql/data.rs +++ b/rusk/src/lib/http/chain/graphql/data.rs @@ -131,7 +131,7 @@ impl Header<'_> { hex::encode(self.0.prev_block_hash) } - pub async fn timestamp(&self) -> i64 { + pub async fn timestamp(&self) -> u64 { self.0.timestamp } @@ -202,7 +202,7 @@ impl SpentTransaction { pub async fn block_timestamp( &self, ctx: &async_graphql::Context<'_>, - ) -> FieldResult { + ) -> FieldResult { let db = ctx.data::()?.read().await; let block_height = self.0.block_height;