Skip to content

Commit

Permalink
hotfix build release (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki authored Dec 23, 2024
1 parent 4872bea commit afb37b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 42 deletions.
6 changes: 6 additions & 0 deletions .changeset/stale-chefs-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@skip-go/client': patch
'@skip-go/widget': patch
---

fix build
35 changes: 1 addition & 34 deletions packages/client/src/types/lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -585,4 +552,4 @@ export interface TransactionCallbacks {
allowance?: ERC20Approval,
status: CallbackStatus
}) => Promise<void>;
}
}
3 changes: 2 additions & 1 deletion packages/widget/src/components/RenderWalletList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -230,6 +230,7 @@ export const RenderWalletList = ({
renderItem,
theme.primary.text.lowContrast,
theme.primary.text.normal,
displayWallets,
]);

return (
Expand Down
7 changes: 0 additions & 7 deletions packages/widget/src/hooks/useCreateCosmosWallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afb37b6

Please sign in to comment.