We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e7179 commit b82e78bCopy full SHA for b82e78b
.changeset/hip-bugs-complain.md
@@ -0,0 +1,5 @@
1
+---
2
+"@treasure-dev/tdk-core": patch
3
4
+
5
+Updated AWS KMS transaction signing fields
packages/core/src/connect/kms.ts
@@ -37,15 +37,16 @@ export const getAwsKmsAccount = async ({
37
38
const r = `0x${signature.r.toString("hex")}` as Hex;
39
const s = `0x${signature.s.toString("hex")}` as Hex;
40
- const v = signature.v;
+ const v = BigInt(signature.v);
41
42
- const yParity = v % 2 === 0 ? 1 : (0 as 0 | 1);
+ const yParity: 0 | 1 = signature.v % 2 === 0 ? 1 : 0;
43
44
const signedTx = serializeTransaction({
45
transaction: tx,
46
signature: {
47
r,
48
s,
49
+ v,
50
yParity,
51
},
52
});
0 commit comments