@rabby-wallet/rabby-action 0.1.1-beta.2 → 0.1.1

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.
@@ -23,6 +23,9 @@ export const formatSecurityEngineContractCall = (options) => __awaiter(void 0, v
23
23
  }
24
24
  return {};
25
25
  }
26
+ if (options.type === 'text') {
27
+ return {};
28
+ }
26
29
  const data = requireData;
27
30
  return {
28
31
  contractCall: {
@@ -88,9 +88,5 @@ export const fetchActionRequiredData = (options) => __awaiter(void 0, void 0, vo
88
88
  fetchDataCoboSafeModificationTokenApproval(options),
89
89
  fetchDataRevokePermit(options),
90
90
  ]);
91
- const requireData = result.reduce((acc, val) => (Object.assign(Object.assign({}, acc), val)), {});
92
- if (requireData && Object.keys(requireData).length === 0) {
93
- return null;
94
- }
95
- return requireData;
91
+ return result.reduce((acc, val) => (Object.assign(Object.assign({}, acc), val)), {});
96
92
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-action",
3
- "version": "0.1.1-beta.2",
3
+ "version": "0.1.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [