Skip to content

Commit

Permalink
Blocktime is int64
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Dec 11, 2024
1 parent 9692166 commit fc0c124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions multiepoch-getTransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit fc0c124

Please sign in to comment.