diff --git a/.changeset/stale-chefs-add.md b/.changeset/stale-chefs-add.md new file mode 100644 index 00000000..3a363e71 --- /dev/null +++ b/.changeset/stale-chefs-add.md @@ -0,0 +1,6 @@ +--- +'@skip-go/client': patch +'@skip-go/widget': patch +--- + +fix build diff --git a/packages/client/src/types/lifecycle.ts b/packages/client/src/types/lifecycle.ts index 78a5140d..740c21a1 100644 --- a/packages/client/src/types/lifecycle.ts +++ b/packages/client/src/types/lifecycle.ts @@ -444,39 +444,6 @@ export type StargateTransferState = | "STARGATE_TRANSFER_FAILED" -export type StargateTransferTransactionsJSON = { - send_tx: ChainTransactionJSON | null; - receive_tx: ChainTransactionJSON | null; - error_tx: ChainTransactionJSON | null; -}; - -export type StargateTransferTransactions = { - sendTx: ChainTransaction | null; - receiveTx: ChainTransaction | null; - errorTx: ChainTransaction | null; -}; - -export type StargateTransferInfoJSON = { - from_chain_id: string; - to_chain_id: string; - state: StargateTransferState; - txs: StargateTransferTransactionsJSON; -}; - -export type StargateTransferInfo = { - fromChainID: string; - toChainID: string; - state: StargateTransferState; - txs: StargateTransferTransactions; -}; - -export type StargateTransferState = - | "STARGATE_TRANSFER_UNKNOWN" - | "STARGATE_TRANSFER_SENT" - | "STARGATE_TRANSFER_RECEIVED" - | "STARGATE_TRANSFER_FAILED" - - export type StargateTransferTransactionsJSON = { send_tx: ChainTransactionJSON | null; receive_tx: ChainTransactionJSON | null; @@ -585,4 +552,4 @@ export interface TransactionCallbacks { allowance?: ERC20Approval, status: CallbackStatus }) => Promise; -} \ No newline at end of file +} diff --git a/packages/widget/src/components/RenderWalletList.tsx b/packages/widget/src/components/RenderWalletList.tsx index f71d90e5..1ad05752 100644 --- a/packages/widget/src/components/RenderWalletList.tsx +++ b/packages/widget/src/components/RenderWalletList.tsx @@ -167,7 +167,7 @@ export const RenderWalletList = ({ const height = useMemo(() => { return Math.min(530, displayWallets.length * (ITEM_HEIGHT + ITEM_GAP)); - }, [walletList, displayWallets.length]); + }, [displayWallets.length]); const renderWalletListOrWalletConnectionStatus = useMemo(() => { @@ -230,6 +230,7 @@ export const RenderWalletList = ({ renderItem, theme.primary.text.lowContrast, theme.primary.text.normal, + displayWallets, ]); return ( diff --git a/packages/widget/src/hooks/useCreateCosmosWallets.tsx b/packages/widget/src/hooks/useCreateCosmosWallets.tsx index b24239df..c8c873df 100644 --- a/packages/widget/src/hooks/useCreateCosmosWallets.tsx +++ b/packages/widget/src/hooks/useCreateCosmosWallets.tsx @@ -139,13 +139,6 @@ export const useCreateCosmosWallets = () => { if (wallet === WalletType.KEPLR && !mobile) return keplrMainnetChainIdsInitialConnect return walletMainnetChainIdsInitialConnect })().filter( - const initialChainIds = ( - isWC - ? walletConnectMainnetChainIdsInitialConnect - : wallet === WalletType.KEPLR - ? keplrMainnetChainIdsInitialConnect - : walletMainnetChainIdsInitialConnect - ).filter( (x) => chains ?.filter((z) => z.chainType === ChainType.Cosmos)