@dfns/lib-aptos 0.8.20 → 0.8.22

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -92,8 +92,8 @@ class DfnsWallet {
92
92
  }
93
93
  exports.DfnsWallet = DfnsWallet;
94
94
  const isSimpleTransaction = (transaction) => {
95
- return transaction instanceof ts_sdk_1.SimpleTransaction;
95
+ return transaction?.rawTransaction !== undefined && transaction?.secondarySignerAddresses === undefined;
96
96
  };
97
97
  const isMultiAgentTransaction = (transaction) => {
98
- return transaction instanceof ts_sdk_1.MultiAgentTransaction;
98
+ return transaction?.rawTransaction !== undefined && Array.isArray(transaction?.secondarySignerAddresses);
99
99
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/lib-aptos",
3
- "version": "0.8.20",
3
+ "version": "0.8.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dfns/dfns-sdk-ts.git",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "peerDependencies": {
10
10
  "@aptos-labs/ts-sdk": "5.0.0",
11
- "@dfns/sdk": "0.8.20"
11
+ "@dfns/sdk": "0.8.22"
12
12
  },
13
13
  "dependencies": {
14
14
  "buffer": "^6.0.3",