@getpara/cosmjs-v0-integration 3.15.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,7 +111,7 @@ class ParaProtoSigner extends ParaCosmosSigner {
|
|
|
111
111
|
signDocBase64: signDocJsonStringEncoded
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
|
-
const signature = (0, import_core_sdk.hexToSignature)(`0x${res
|
|
114
|
+
const signature = (0, import_core_sdk.hexToSignature)(`0x${(0, import_core_sdk.requireSuccessfulSignature)(res)}`);
|
|
115
115
|
const extendedSignature = new import_crypto.ExtendedSecp256k1Signature(
|
|
116
116
|
(0, import_core_sdk.hexToUint8Array)(signature.r),
|
|
117
117
|
(0, import_core_sdk.hexToUint8Array)(signature.s),
|
|
@@ -142,7 +142,7 @@ class ParaAminoSigner extends ParaCosmosSigner {
|
|
|
142
142
|
signDocBase64
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
const signature = (0, import_core_sdk.hexToSignature)(`0x${res
|
|
145
|
+
const signature = (0, import_core_sdk.hexToSignature)(`0x${(0, import_core_sdk.requireSuccessfulSignature)(res)}`);
|
|
146
146
|
const extendedSignature = new import_crypto.ExtendedSecp256k1Signature(
|
|
147
147
|
(0, import_core_sdk.hexToUint8Array)(signature.r),
|
|
148
148
|
(0, import_core_sdk.hexToUint8Array)(signature.s),
|
|
@@ -11,6 +11,7 @@ import { SignDoc } from "cosmjs-types/cosmos/tx/v1beta1/tx";
|
|
|
11
11
|
import {
|
|
12
12
|
hexToSignature,
|
|
13
13
|
hexToUint8Array,
|
|
14
|
+
requireSuccessfulSignature,
|
|
14
15
|
getCosmosAddress
|
|
15
16
|
} from "@getpara/core-sdk";
|
|
16
17
|
class ParaCosmosSigner {
|
|
@@ -76,7 +77,7 @@ class ParaProtoSigner extends ParaCosmosSigner {
|
|
|
76
77
|
signDocBase64: signDocJsonStringEncoded
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
|
-
const signature = hexToSignature(`0x${res
|
|
80
|
+
const signature = hexToSignature(`0x${requireSuccessfulSignature(res)}`);
|
|
80
81
|
const extendedSignature = new ExtendedSecp256k1Signature(
|
|
81
82
|
hexToUint8Array(signature.r),
|
|
82
83
|
hexToUint8Array(signature.s),
|
|
@@ -107,7 +108,7 @@ class ParaAminoSigner extends ParaCosmosSigner {
|
|
|
107
108
|
signDocBase64
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
|
-
const signature = hexToSignature(`0x${res
|
|
111
|
+
const signature = hexToSignature(`0x${requireSuccessfulSignature(res)}`);
|
|
111
112
|
const extendedSignature = new ExtendedSecp256k1Signature(
|
|
112
113
|
hexToUint8Array(signature.r),
|
|
113
114
|
hexToUint8Array(signature.s),
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/cosmjs-v0-integration",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/core-sdk": "3.
|
|
5
|
+
"@getpara/core-sdk": "3.17.0"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@cosmjs/amino": "^0.32.4",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist",
|
|
17
17
|
"package.json"
|
|
18
18
|
],
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "4e85077724ede8b0e09a8784cb01a898340635cd",
|
|
20
20
|
"main": "dist/cjs/index.js",
|
|
21
21
|
"module": "dist/esm/index.js",
|
|
22
22
|
"peerDependencies": {
|