File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,16 @@ func (t *Transaction) V(ctx context.Context) hexutil.Big {
566
566
return hexutil .Big (* v )
567
567
}
568
568
569
+ func (t * Transaction ) YParity (ctx context.Context ) (* hexutil.Uint64 , error ) {
570
+ tx , _ := t .resolve (ctx )
571
+ if tx == nil || tx .Type () == types .LegacyTxType {
572
+ return nil , nil
573
+ }
574
+ v , _ , _ := tx .RawSignatureValues ()
575
+ ret := hexutil .Uint64 (v .Int64 ())
576
+ return & ret , nil
577
+ }
578
+
569
579
func (t * Transaction ) Raw (ctx context.Context ) (hexutil.Bytes , error ) {
570
580
tx , _ := t .resolve (ctx )
571
581
if tx == nil {
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ const schema string = `
151
151
r: BigInt!
152
152
s: BigInt!
153
153
v: BigInt!
154
+ yParity: Long
154
155
# Envelope transaction support
155
156
type: Long
156
157
accessList: [AccessTuple!]
You can’t perform that action at this time.
0 commit comments