diff options
Diffstat (limited to 'graphql/graphql.go')
-rw-r--r-- | graphql/graphql.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphql/graphql.go b/graphql/graphql.go index b16f93e46..b3bcbd8a4 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -512,12 +512,12 @@ func (b *Block) Difficulty(ctx context.Context) (hexutil.Big, error) { return hexutil.Big(*header.Difficulty), nil } -func (b *Block) Timestamp(ctx context.Context) (hexutil.Big, error) { +func (b *Block) Timestamp(ctx context.Context) (hexutil.Uint64, error) { header, err := b.resolveHeader(ctx) if err != nil { - return hexutil.Big{}, err + return 0, err } - return hexutil.Big(*header.Time), nil + return hexutil.Uint64(header.Time), nil } func (b *Block) Nonce(ctx context.Context) (hexutil.Bytes, error) { |