From fc0c124b5d99e506fe3afc6c7c1300494a755784 Mon Sep 17 00:00:00 2001 From: gagliardetto Date: Wed, 11 Dec 2024 23:36:51 +0100 Subject: [PATCH] Blocktime is int64 --- multiepoch-getTransaction.go | 3 +-- storage.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/multiepoch-getTransaction.go b/multiepoch-getTransaction.go index 74981cae..eeb7c7c7 100644 --- a/multiepoch-getTransaction.go +++ b/multiepoch-getTransaction.go @@ -180,8 +180,7 @@ func (multi *MultiEpoch) handleGetTransaction(ctx context.Context, conn *request if err != nil { return nil, status.Errorf(codes.Internal, "Failed to get block: %v", err) } - blocktimeasUint64 := uint64(blocktime) - response.Blocktime = &blocktimeasUint64 + response.Blocktime = &blocktime } else { return &jsonrpc2.Error{ Code: jsonrpc2.CodeInternalError, diff --git a/storage.go b/storage.go index f706eb7f..b8469cae 100644 --- a/storage.go +++ b/storage.go @@ -113,7 +113,7 @@ type GetBlockResponse struct { type GetTransactionResponse struct { // TODO: use same format as solana - Blocktime *uint64 `json:"blockTime,omitempty"` + Blocktime *int64 `json:"blockTime,omitempty"` Meta any `json:"meta"` Slot *uint64 `json:"slot,omitempty"` Transaction any `json:"transaction"`