-
Notifications
You must be signed in to change notification settings - Fork 26
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
Support for non-NFT spl-tokens #1
base: main
Are you sure you want to change the base?
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @mitrovicstefan on Vercel. @mitrovicstefan first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self comment...
server-middleware/logHodlers.ts
Outdated
} | ||
|
||
// Optionally check for spl-tokens matching mint IDs if NFTs were not found | ||
if (matched.length == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only added this to the first handler to initially add the role. Probably should also update the second one that updates roles later. How does that one get called, didn't see references to it elsewhere in code. Is it meant to be called externally via a curl
or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, curl or just go to it in the browser
nuxt.config.js
Outdated
title: 'authorization-bot', | ||
title: 'NFT 4 Cause Discord Verification', | ||
htmlAttrs: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep this generic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, that slipped into the PR. Need to keep that on a branch out of main
. My fault!
server-middleware/logHodlers.ts
Outdated
} | ||
|
||
// Optionally check for spl-tokens matching mint IDs if NFTs were not found | ||
if (matched.length == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, curl or just go to it in the browser
Solflare support
Discord role assignment by matching NFT count
Voting service implementation
Plus a Dockerfile tweak so that it would run successfully 🔥