@veridex/sdk 1.1.2 → 1.1.3
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.
- package/dist/chains/avalanche/index.js +22 -8
- package/dist/chains/avalanche/index.js.map +1 -1
- package/dist/chains/avalanche/index.mjs +2 -2
- package/dist/chains/evm/index.js +22 -8
- package/dist/chains/evm/index.js.map +1 -1
- package/dist/chains/evm/index.mjs +1 -1
- package/dist/{chunk-AFHWA4CZ.mjs → chunk-6JULIESG.mjs} +2 -2
- package/dist/{chunk-DZUNCSI5.mjs → chunk-E5HHE7IW.mjs} +23 -9
- package/dist/{chunk-DZUNCSI5.mjs.map → chunk-E5HHE7IW.mjs.map} +1 -1
- package/dist/index.js +22 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-AFHWA4CZ.mjs.map → chunk-6JULIESG.mjs.map} +0 -0
package/dist/chains/evm/index.js
CHANGED
|
@@ -1249,14 +1249,28 @@ var EVMClient = class {
|
|
|
1249
1249
|
return { receipt };
|
|
1250
1250
|
}
|
|
1251
1251
|
async getTransactionPolicy(identityKeyHash) {
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1252
|
+
try {
|
|
1253
|
+
const result = await this.hubContract.getTransactionPolicy(identityKeyHash);
|
|
1254
|
+
return {
|
|
1255
|
+
enabled: result.enabled,
|
|
1256
|
+
threshold: Number(result.threshold),
|
|
1257
|
+
protectedActionMask: Number(result.protectedActionMask),
|
|
1258
|
+
proposalTtl: Number(result.proposalTtl),
|
|
1259
|
+
disableSessions: result.disableSessions
|
|
1260
|
+
};
|
|
1261
|
+
} catch (error) {
|
|
1262
|
+
const code = error?.code;
|
|
1263
|
+
if (code === "CALL_EXCEPTION" || code === "BAD_DATA") {
|
|
1264
|
+
return {
|
|
1265
|
+
enabled: false,
|
|
1266
|
+
threshold: 0,
|
|
1267
|
+
protectedActionMask: 0,
|
|
1268
|
+
proposalTtl: 0,
|
|
1269
|
+
disableSessions: false
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
throw error;
|
|
1273
|
+
}
|
|
1260
1274
|
}
|
|
1261
1275
|
async createTransactionProposal(signature, publicKeyX, publicKeyY, targetChain, actionPayload, signer) {
|
|
1262
1276
|
const s = signer;
|