diff --git a/src/hooks/useDeployContract.ts b/src/hooks/useDeployContract.ts index 9c74cd35..2c8bb76c 100644 --- a/src/hooks/useDeployContract.ts +++ b/src/hooks/useDeployContract.ts @@ -138,7 +138,6 @@ export const useDeployContract = (): ReturnValue & { wasm }) - debugger const predictedStorageDeposit = decodeStorageDeposit(storageDeposit) const tx = createInstatiateTx( api, diff --git a/src/hooks/useDeployContractNew.ts b/src/hooks/useDeployContractNew.ts deleted file mode 100644 index 21fffc33..00000000 --- a/src/hooks/useDeployContractNew.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { GetServiceData } from '@/types' -import { useState } from 'react' - -type ReturnValue = GetServiceData & { - // deployContract: () => void -} - -export function useDeployContract(): ReturnValue { - const [isLoading, setIsLoading] = useState(false) - const [error, setError] = useState() - - return { isLoading, error } -} diff --git a/src/infrastructure/contractDryRun.ts b/src/infrastructure/contractDryRun.ts index cd83ab07..93da7816 100644 --- a/src/infrastructure/contractDryRun.ts +++ b/src/infrastructure/contractDryRun.ts @@ -75,7 +75,6 @@ export async function contractDryRun({ ...Object.values(params) )) as ContractInstantiateResult - debugger if (dryRunResult?.result.isOk) return dryRunResult const dryRunError = diff --git a/src/view/components/ConfirmationDialog/index.tsx b/src/view/components/ConfirmationDialog/index.tsx index 5423c124..cc1f6789 100644 --- a/src/view/components/ConfirmationDialog/index.tsx +++ b/src/view/components/ConfirmationDialog/index.tsx @@ -11,22 +11,26 @@ interface ConfirmationDialogProps { open: boolean onClose: () => void onConfirm: () => void + message?: string } +const TEXT_CONFIRM = 'Be sure you want to perform this action?' + function ConfirmationDialog({ open, onClose, - onConfirm + onConfirm, + message = TEXT_CONFIRM }: ConfirmationDialogProps) { return ( - Confirmar Acción + Confirm Action -

Be sure you want to perform this action?

+

{message}

- - + +
)