Skip to content

Commit

Permalink
rusk: change block timestamp to u64
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Jan 8, 2024
1 parent 57bb4c5 commit 11898c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rusk/src/lib/http/chain/graphql/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -202,7 +202,7 @@ impl SpentTransaction {
pub async fn block_timestamp(
&self,
ctx: &async_graphql::Context<'_>,
) -> FieldResult<i64> {
) -> FieldResult<u64> {
let db = ctx.data::<super::DBContext>()?.read().await;
let block_height = self.0.block_height;

Expand Down

0 comments on commit 11898c4

Please sign in to comment.