Skip to content

Commit

Permalink
graphql: type of yParity from Long to BigInt (ethereum#28456)
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <delweng@gmail.com>
  • Loading branch information
jsvisa authored and devopsbo3 committed Nov 10, 2023
1 parent 0a87754 commit 813f62f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions graphql/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,13 +615,13 @@ func (t *Transaction) V(ctx context.Context) hexutil.Big {
return hexutil.Big(*v)
}

func (t *Transaction) YParity(ctx context.Context) (*hexutil.Uint64, error) {
func (t *Transaction) YParity(ctx context.Context) (*hexutil.Big, error) {
tx, _ := t.resolve(ctx)
if tx == nil || tx.Type() == types.LegacyTxType {
return nil, nil
}
v, _, _ := tx.RawSignatureValues()
ret := hexutil.Uint64(v.Int64())
ret := hexutil.Big(*v)
return &ret, nil
}

Expand Down
2 changes: 1 addition & 1 deletion graphql/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const schema string = `
r: BigInt!
s: BigInt!
v: BigInt!
yParity: Long
yParity: BigInt
# Envelope transaction support
type: Long
accessList: [AccessTuple!]
Expand Down

0 comments on commit 813f62f

Please sign in to comment.