Skip to content

Commit

Permalink
Test self fund sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
broody committed Jul 15, 2024
1 parent c73f040 commit d65f475
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/keychain/src/components/DeploymentRequired.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
7 changes: 3 additions & 4 deletions packages/keychain/src/components/connect/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { useConnection } from "hooks/connection";
import { useDebounce } from "hooks/debounce";
import { ErrorAlert } from "components/ErrorAlert";
import { useDeploy } from "hooks/deploy";
import { constants } from "starknet";

export function Signup({
prefilledName = "",
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit d65f475

Please sign in to comment.