File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,16 @@ export async function getAwsKmsAccount(
52
52
53
53
const r = `0x${ signature . r . toString ( "hex" ) } ` as Hex ;
54
54
const s = `0x${ signature . s . toString ( "hex" ) } ` as Hex ;
55
- const v = signature . v ;
55
+ const v = BigInt ( signature . v ) ;
56
56
57
- const yParity = v % 2 === 0 ? 1 : ( 0 as 0 | 1 ) ;
57
+ const yParity : 0 | 1 = signature . v % 2 === 0 ? 1 : 0 ;
58
58
59
59
const signedTx = serializeTransaction ( {
60
60
transaction : tx ,
61
61
signature : {
62
62
r,
63
63
s,
64
+ v,
64
65
yParity,
65
66
} ,
66
67
} ) ;
Original file line number Diff line number Diff line change @@ -72,15 +72,16 @@ export async function getGcpKmsAccount(
72
72
73
73
const r = signature . r . toString ( ) as Hex ;
74
74
const s = signature . s . toString ( ) as Hex ;
75
- const v = signature . v ;
75
+ const v = BigInt ( signature . v ) ;
76
76
77
- const yParity = v % 2 === 0 ? 1 : ( 0 as 0 | 1 ) ;
77
+ const yParity : 0 | 1 = signature . v % 2 === 0 ? 1 : 0 ;
78
78
79
79
const signedTx = serializeTransaction ( {
80
80
transaction : tx ,
81
81
signature : {
82
82
r,
83
83
s,
84
+ v,
84
85
yParity,
85
86
} ,
86
87
} ) ;
You can’t perform that action at this time.
0 commit comments