From fb060f4b0279fa2e748716e5133f9f50117d9b9a Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 2 Apr 2019 16:08:21 +0200 Subject: [PATCH] graphql: update schema for timestamp --- core/types/block_test.go | 2 +- graphql/schema.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/types/block_test.go b/core/types/block_test.go index a35fbc25b1..2576f2fbc8 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -48,7 +48,7 @@ func TestBlockEncoding(t *testing.T) { check("Root", block.Root(), common.HexToHash("ef1552a40b7165c3cd773806b9e0c165b75356e0314bf0706f279c729f51e017")) check("Hash", block.Hash(), common.HexToHash("0a5843ac1cb04865017cb35a57b50b07084e5fcee39b5acadade33149f4fff9e")) check("Nonce", block.Nonce(), uint64(0xa13a5a8c8f2bb1c4)) - check("Time", block.Time(), big.NewInt(1426516743)) + check("Time", block.Time(), uint64(1426516743)) check("Size", block.Size(), common.StorageSize(len(blockEnc))) tx1 := NewTransaction(0, common.HexToAddress("095e7baea6a6c7c4c2dfeb977efac326af552d87"), big.NewInt(10), 50000, big.NewInt(10), nil) diff --git a/graphql/schema.go b/graphql/schema.go index e266e429e1..bd913d9aa6 100644 --- a/graphql/schema.go +++ b/graphql/schema.go @@ -165,7 +165,7 @@ const schema string = ` # GasUsed is the amount of gas that was used executing transactions in this block. gasUsed: Long! # Timestamp is the unix timestamp at which this block was mined. - timestamp: BigInt! + timestamp: Long! # LogsBloom is a bloom filter that can be used to check if a block may # contain log entries matching a filter. logsBloom: Bytes!