From 90971704121101239bf139e901a691aa40e924ac Mon Sep 17 00:00:00 2001 From: Pavlos Chrysochoidis <10210143+pchrysochoidis@users.noreply.github.com> Date: Tue, 16 Aug 2022 13:53:44 +0300 Subject: [PATCH] wallet-ext: fix ts error after sdk update --- wallet/package-lock.json | 2 ++ wallet/src/ui/app/pages/dapp-tx-approval/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wallet/package-lock.json b/wallet/package-lock.json index 1201ed41b5210..8959902990343 100644 --- a/wallet/package-lock.json +++ b/wallet/package-lock.json @@ -76,6 +76,7 @@ "version": "0.8.0", "license": "Apache-2.0", "dependencies": { + "@mysten/bcs": "^0.2.0", "bn.js": "^5.2.0", "buffer": "^6.0.3", "cross-fetch": "^3.1.5", @@ -17790,6 +17791,7 @@ "@mysten/sui.js": { "version": "file:../sdk/typescript", "requires": { + "@mysten/bcs": "^0.2.0", "@size-limit/preset-small-lib": "^7.0.8", "@types/bn.js": "^5.1.0", "@types/lossless-json": "^1.0.1", diff --git a/wallet/src/ui/app/pages/dapp-tx-approval/index.tsx b/wallet/src/ui/app/pages/dapp-tx-approval/index.tsx index 52be7082b3602..f4299cd1c3252 100644 --- a/wallet/src/ui/app/pages/dapp-tx-approval/index.tsx +++ b/wallet/src/ui/app/pages/dapp-tx-approval/index.tsx @@ -12,13 +12,13 @@ import { txRequestsSelectors, } from '_redux/slices/transaction-requests'; -import type { SuiJsonValue } from '@mysten/sui.js'; +import type { CallArg, SuiJsonValue, TypeTag } from '@mysten/sui.js'; import type { RootState } from '_redux/RootReducer'; import st from './DappTxApprovalPage.module.scss'; import stUserApprove from '_components/user-approve-container/UserApproveContainer.module.scss'; -function toList(items: SuiJsonValue[]) { +function toList(items: SuiJsonValue[] | TypeTag[] | CallArg[]) { if (!items.length) { return '-'; }