Skip to content

Commit 402dfcd

Browse files
committed
Test self fund sepolia
1 parent c73f040 commit 402dfcd

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

packages/keychain/src/components/DeploymentRequired.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export function DeploymentRequired({
3030
return;
3131
}
3232

33-
if (account.chainId === constants.StarknetChainId.SN_MAIN) {
33+
if (
34+
account.chainId === constants.StarknetChainId.SN_MAIN ||
35+
account.chainId === constants.StarknetChainId.SN_SEPOLIA
36+
) {
3437
setIsFundingRequired(true);
3538
return;
3639
}

packages/keychain/src/components/Execute/index.tsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,9 @@ export function Execute() {
116116

117117
// TODO: calculate webauthn validation cost separately
118118
const maxFee = num.toHex(ctx.transactionsDetail?.maxFee || ETH_MIN_PREFUND);
119-
const { transaction_hash } = await account.execute(
120-
calls,
121-
{
122-
maxFee,
123-
},
124-
);
119+
const { transaction_hash } = await account.execute(calls, {
120+
maxFee,
121+
});
125122
ctx.resolve({
126123
transaction_hash,
127124
code: ResponseCodes.SUCCESS,

packages/keychain/src/components/connect/Signup.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ import { useControllerTheme } from "hooks/theme";
1919
import { useConnection } from "hooks/connection";
2020
import { useDebounce } from "hooks/debounce";
2121
import { ErrorAlert } from "components/ErrorAlert";
22-
import { useDeploy } from "hooks/deploy";
23-
import { constants } from "starknet";
22+
//import { useDeploy } from "hooks/deploy";
2423

2524
export function Signup({
2625
prefilledName = "",
@@ -54,7 +53,7 @@ export function Signup({
5453

5554
function Form({ isSlot, onLogin, onSuccess }: SignupProps) {
5655
const { chainId, rpcUrl, setController } = useConnection();
57-
const { deployRequest } = useDeploy();
56+
//const { deployRequest } = useDeploy();
5857
const { values, errors, setErrors, setTouched } =
5958
useFormikContext<FormValues>();
6059
const [error, setError] = useState<Error>();
@@ -95,9 +94,9 @@ function Form({ isSlot, onLogin, onSuccess }: SignupProps) {
9594
refetchInterval: (data) => (!data ? 1000 : undefined),
9695
onSuccess: async (data) => {
9796
try {
98-
if (chainId !== constants.StarknetChainId.SN_MAIN) {
99-
await deployRequest(values.username);
100-
}
97+
// if (chainId !== constants.StarknetChainId.SN_MAIN) {
98+
// await deployRequest(values.username);
99+
// }
101100

102101
const {
103102
account: {

0 commit comments

Comments
 (0)