Skip to content

Commit 7ea860d

Browse files
authored
graphql: type of yParity from Long to BigInt (ethereum#28456)
Signed-off-by: jsvisa <delweng@gmail.com>
1 parent 470dba8 commit 7ea860d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graphql/graphql.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -615,13 +615,13 @@ func (t *Transaction) V(ctx context.Context) hexutil.Big {
615615
return hexutil.Big(*v)
616616
}
617617

618-
func (t *Transaction) YParity(ctx context.Context) (*hexutil.Uint64, error) {
618+
func (t *Transaction) YParity(ctx context.Context) (*hexutil.Big, error) {
619619
tx, _ := t.resolve(ctx)
620620
if tx == nil || tx.Type() == types.LegacyTxType {
621621
return nil, nil
622622
}
623623
v, _, _ := tx.RawSignatureValues()
624-
ret := hexutil.Uint64(v.Int64())
624+
ret := hexutil.Big(*v)
625625
return &ret, nil
626626
}
627627

graphql/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const schema string = `
157157
r: BigInt!
158158
s: BigInt!
159159
v: BigInt!
160-
yParity: Long
160+
yParity: BigInt
161161
# Envelope transaction support
162162
type: Long
163163
accessList: [AccessTuple!]

0 commit comments

Comments
 (0)