tek-wallet 0.0.466 → 0.0.468

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.
@@ -2,7 +2,7 @@ import { ConfirmLayoutProps } from "../ConfirmLayout";
2
2
  import { SendExternalBody, SendExternalResponse } from "../../../services/axios/send-external-service/type";
3
3
  import { FeesDataType } from "../../../services/axios/get-est-fee-service/type";
4
4
  import { NetworkData } from "../../../services/axios/type";
5
- interface SendExternalDataType extends Omit<SendExternalBody, "network"> {
5
+ interface SendExternalDataType extends Omit<SendExternalBody, "network" | "passcode"> {
6
6
  network: NetworkData;
7
7
  }
8
8
  interface SendExternalTokenProps extends Omit<ConfirmLayoutProps, "action"> {
@@ -184,7 +184,7 @@ var SendExternalToken = (0, react_1.forwardRef)(function (props, ref) {
184
184
  _c.trys.push([0, 2, , 3]);
185
185
  console.warn("🚀 ~ handleSendExternalToken ~ sendExternalData:", props.sendExternalData, passcode);
186
186
  setButtonStatus(Button_1.BUTTON_STATUS.LOADING);
187
- return [4 /*yield*/, (0, send_external_service_1.default)(__assign(__assign({}, props.sendExternalData), { network: network === null || network === void 0 ? void 0 : network.slug }))];
187
+ return [4 /*yield*/, (0, send_external_service_1.default)(__assign(__assign({}, props.sendExternalData), { network: network === null || network === void 0 ? void 0 : network.slug, passcode: passcode }))];
188
188
  case 1:
189
189
  response = _c.sent();
190
190
  console.warn("🚀 ~ handleSendExternalToken ~ response:", response);
@@ -680,10 +680,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
680
680
  amount: "".concat(amount),
681
681
  currency_slug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "",
682
682
  to_address: recipientAddress || "",
683
- passcode: "",
684
683
  network: selectedNetwork,
685
684
  memo: memo || "",
686
- } }), (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: type_1.ActionConfirm.SEND, trigger: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: !!amountError ||
685
+ }, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { children: "Send externally" }) }), (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: type_1.ActionConfirm.SEND, trigger: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: !!amountError ||
687
686
  !!recipientAddressError ||
688
687
  !recipientAddress ||
689
688
  !amount ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.466",
3
+ "version": "0.0.468",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",