diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 80bfe5088..8fa974244 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -23,8 +23,14 @@ jobs: - name: Install Dependencies run: npm install -g create-cosmos-app - - name: check install + - name: vote-proposal run: | cca --example vote-proposal --name vote-proposal cd vote-proposal + yarn build + + - name: send-tokens + run: | + cca --example send-tokens --name send-tokens + cd send-tokens yarn build \ No newline at end of file diff --git a/examples/stake-tokens/components/wallet/WalletConnect.tsx b/examples/stake-tokens/components/wallet/WalletConnect.tsx index 408b385e0..b669953cb 100644 --- a/examples/stake-tokens/components/wallet/WalletConnect.tsx +++ b/examples/stake-tokens/components/wallet/WalletConnect.tsx @@ -55,6 +55,8 @@ export const ConnectWalletButton = ({ gap="$4" as="span" borderRadius="8px" + // TODO fix type error + // @ts-ignore style={{ zIndex: '1', }} diff --git a/examples/stake-tokens/components/wallet/WarnBlock.tsx b/examples/stake-tokens/components/wallet/WarnBlock.tsx index 7de4a5ecd..6d1edd47a 100644 --- a/examples/stake-tokens/components/wallet/WarnBlock.tsx +++ b/examples/stake-tokens/components/wallet/WarnBlock.tsx @@ -26,6 +26,8 @@ export const WarnBlock = ({ justifyContent="center" width="$full" overflowY="scroll" + // TODO fix type error + // @ts-ignore style={{ // For Firefox scrollbarWidth: 'auto', diff --git a/examples/stake-tokens/hooks/useTx.ts b/examples/stake-tokens/hooks/useTx.ts index afd05efa3..06f1f64fc 100644 --- a/examples/stake-tokens/hooks/useTx.ts +++ b/examples/stake-tokens/hooks/useTx.ts @@ -77,7 +77,7 @@ export const useTx = (chainName: string) => { if (client && signed) { await client .broadcastTx(Uint8Array.from(txRaw.encode(signed).finish())) - .then((res) => { + .then((res: any) => { if (isDeliverTxSuccess(res)) { if (options.onSuccess) options.onSuccess(); diff --git a/examples/stake-tokens/pages/_app.tsx b/examples/stake-tokens/pages/_app.tsx index 85c20f15a..f6e1bbe98 100644 --- a/examples/stake-tokens/pages/_app.tsx +++ b/examples/stake-tokens/pages/_app.tsx @@ -31,9 +31,13 @@ function CreateCosmosApp({ Component, pageProps }: AppProps) { const { themeClass } = useTheme(); const signerOptions: SignerOptions = { + // TODO fix type error + // @ts-ignore signingStargate: (chain) => { let gasPrice; try { + // TODO fix type error + // @ts-ignore const feeToken = chain.fees?.fee_tokens[0]; const fee = `${feeToken?.average_gas_price || 0.025}${feeToken?.denom}`; gasPrice = GasPrice.fromString(fee); @@ -70,6 +74,7 @@ function CreateCosmosApp({ Component, pageProps }: AppProps) { minHeight="100dvh" backgroundColor={useColorModeValue('$white', '$background')} > + {/* @ts-ignore */}