diff --git a/packages/keychain/src/components/DeploymentRequired.tsx b/packages/keychain/src/components/DeploymentRequired.tsx index ffb53cfa2..681319e42 100644 --- a/packages/keychain/src/components/DeploymentRequired.tsx +++ b/packages/keychain/src/components/DeploymentRequired.tsx @@ -30,7 +30,10 @@ export function DeploymentRequired({ return; } - if (account.chainId === constants.StarknetChainId.SN_MAIN) { + if ( + account.chainId === constants.StarknetChainId.SN_MAIN || + account.chainId === constants.StarknetChainId.SN_SEPOLIA + ) { setIsFundingRequired(true); return; } diff --git a/packages/keychain/src/components/Execute/index.tsx b/packages/keychain/src/components/Execute/index.tsx index 1fb0f29c1..523639d83 100644 --- a/packages/keychain/src/components/Execute/index.tsx +++ b/packages/keychain/src/components/Execute/index.tsx @@ -116,12 +116,9 @@ export function Execute() { // TODO: calculate webauthn validation cost separately const maxFee = num.toHex(ctx.transactionsDetail?.maxFee || ETH_MIN_PREFUND); - const { transaction_hash } = await account.execute( - calls, - { - maxFee, - }, - ); + const { transaction_hash } = await account.execute(calls, { + maxFee, + }); ctx.resolve({ transaction_hash, code: ResponseCodes.SUCCESS, diff --git a/packages/keychain/src/components/connect/Signup.tsx b/packages/keychain/src/components/connect/Signup.tsx index b3b33d4d6..7667f61c8 100644 --- a/packages/keychain/src/components/connect/Signup.tsx +++ b/packages/keychain/src/components/connect/Signup.tsx @@ -19,8 +19,7 @@ import { useControllerTheme } from "hooks/theme"; import { useConnection } from "hooks/connection"; import { useDebounce } from "hooks/debounce"; import { ErrorAlert } from "components/ErrorAlert"; -import { useDeploy } from "hooks/deploy"; -import { constants } from "starknet"; +//import { useDeploy } from "hooks/deploy"; export function Signup({ prefilledName = "", @@ -54,7 +53,7 @@ export function Signup({ function Form({ isSlot, onLogin, onSuccess }: SignupProps) { const { chainId, rpcUrl, setController } = useConnection(); - const { deployRequest } = useDeploy(); + //const { deployRequest } = useDeploy(); const { values, errors, setErrors, setTouched } = useFormikContext(); const [error, setError] = useState(); @@ -95,9 +94,9 @@ function Form({ isSlot, onLogin, onSuccess }: SignupProps) { refetchInterval: (data) => (!data ? 1000 : undefined), onSuccess: async (data) => { try { - if (chainId !== constants.StarknetChainId.SN_MAIN) { - await deployRequest(values.username); - } + // if (chainId !== constants.StarknetChainId.SN_MAIN) { + // await deployRequest(values.username); + // } const { account: {