Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

referral modal #363

Draft
wants to merge 13 commits into
base: dev
Choose a base branch
from
Draft

referral modal #363

wants to merge 13 commits into from

Conversation

matepal00
Copy link
Contributor

No description provided.

Copy link

This pull request has been deployed to Vercel.

Latest commit: 4deb35f
✅ Preview: https://webapp-eclipse-uxbm0h3ol-invariantlabs.vercel.app
🔍 Inspect: https://vercel.com/invariantlabs/webapp-eclipse/BE1jHiWHAotWrna1pFbPxSZaYBk5

View Workflow Logs

import { getWallet } from './wallet'

async function fetchRefferalCode(address: string) {
const response = await fetch(`http://localhost:3000/api/leaderboard/get-code/${address}`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be good to extract http://localhost:3000 to constant variable

}
}

export function* useCode(action: PayloadAction<{ code: string }>): Generator {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add snackbars to sucess and failure cases

Copy link
Collaborator

@Sniezka1927 Sniezka1927 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a problem with signing a message from directly connected nightly wallet (not through adapeter)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants