Skip to content

Commit

Permalink
feat: add aa sponsoring and passkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Nov 11, 2024
1 parent 32c7cc5 commit 78fa3c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/interface/src/contexts/Maci.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const MaciProvider: React.FC<MaciProviderProps> = ({ children }: MaciProv

// on load get the key pair from local storage and set the signature message
useEffect(() => {
setSignatureMessage(`Generate your EdDSA Key Pair at ${window.location.origin}`);
setSignatureMessage(`Generate your EdDSA Key Pair`);
const storedMaciPrivKey = localStorage.getItem("maciPrivKey");
const storedMaciPubKey = localStorage.getItem("maciPubKey");
const storedSemaphoreIdentity = localStorage.getItem("semaphoreIdentity");
Expand Down Expand Up @@ -274,7 +274,7 @@ export const MaciProvider: React.FC<MaciProviderProps> = ({ children }: MaciProv
// @ts-expect-error type mismatch
const { stateIndex: index, voiceCredits } = await signup(smartAccount, smartAccountClient, maciPubKey, sgData);

if (index) {
if (index >= 0n) {
setIsRegistered(true);
setStateIndex(index.toString());
setInitialVoiceCredits(Number.parseInt(voiceCredits.toString(), 10));
Expand Down
1 change: 1 addition & 0 deletions packages/interface/src/providers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const Providers = ({ children }: PropsWithChildren): JSX.Element => {
logo: "/round-logo.svg",
loginMessage: "Welcome to MACI Platform",
landingHeader: "MACI Platform",
walletList: ["metamask"],
},
// Create embedded wallets for users who don't have a wallet
embeddedWallets: {
Expand Down

0 comments on commit 78fa3c4

Please sign in to comment.