forked from cerc-io/plugeth
graphql: type of yParity from Long to BigInt (#28456)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
470dba8fc1
commit
7ea860d665
@ -615,13 +615,13 @@ func (t *Transaction) V(ctx context.Context) hexutil.Big {
|
|||||||
return hexutil.Big(*v)
|
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)
|
tx, _ := t.resolve(ctx)
|
||||||
if tx == nil || tx.Type() == types.LegacyTxType {
|
if tx == nil || tx.Type() == types.LegacyTxType {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
v, _, _ := tx.RawSignatureValues()
|
v, _, _ := tx.RawSignatureValues()
|
||||||
ret := hexutil.Uint64(v.Int64())
|
ret := hexutil.Big(*v)
|
||||||
return &ret, nil
|
return &ret, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ const schema string = `
|
|||||||
r: BigInt!
|
r: BigInt!
|
||||||
s: BigInt!
|
s: BigInt!
|
||||||
v: BigInt!
|
v: BigInt!
|
||||||
yParity: Long
|
yParity: BigInt
|
||||||
# Envelope transaction support
|
# Envelope transaction support
|
||||||
type: Long
|
type: Long
|
||||||
accessList: [AccessTuple!]
|
accessList: [AccessTuple!]
|
||||||
|
Loading…
Reference in New Issue
Block a user