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

feat: gno ghverify agent #1288

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

feat: gno ghverify agent #1288

wants to merge 5 commits into from

Conversation

Villaquiranm
Copy link
Collaborator

No description provided.

Copy link

netlify bot commented Sep 29, 2024

Deploy Preview for testitori ready!

Name Link
🔨 Latest commit 215c7d9
🔍 Latest deploy log https://app.netlify.com/sites/testitori/deploys/670eb7dde2df5f000890dd72
😎 Deploy Preview https://deploy-preview-1288--testitori.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 29, 2024

Deploy Preview for teritori-dapp ready!

Name Link
🔨 Latest commit 215c7d9
🔍 Latest deploy log https://app.netlify.com/sites/teritori-dapp/deploys/670eb7dd81a05b0008781910
😎 Deploy Preview https://deploy-preview-1288--teritori-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Villaquiranm Villaquiranm force-pushed the feat/gh_verify_agent branch 2 times, most recently from 051b7cf to 207407a Compare October 7, 2024 21:00
@Villaquiranm Villaquiranm force-pushed the feat/gh_verify_agent branch 2 times, most recently from 0cbe6ef to e29c5e4 Compare October 7, 2024 22:18
@n0izn0iz
Copy link
Collaborator

n0izn0iz commented Oct 8, 2024

maybe we should move that to a new repo? if we keep it here pls move it to go/cmd/gno-ghverify-agent

@n0izn0iz n0izn0iz changed the title feat: Add gh verify agent feat: gno ghverify agent Oct 8, 2024
@@ -0,0 +1,5 @@
GNO_MNEMONIC=source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this normal that we keep this mnemonic here ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed on f4a2a1f

err := client.db.Model(&db.Verification{}).Where("status = ?", string(db.VerificationStatusVerified)).Order("id desc").First(&verification).Error

if err != nil {
if errors.Is(err, gorm.ErrRecordNotFound) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont see the purpose if this error checking :o both cases return the same value

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed on f4a2a1f

if attr.Key == "handle" {
handle = attr.Value
}
if attr.Key == "from" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should use else if to prevent one more unused comparison

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed on f4a2a1f

@Villaquiranm
Copy link
Collaborator Author

Villaquiranm commented Oct 15, 2024

maybe we should move that to a new repo? if we keep it here pls move it to go/cmd/gno-ghverify-agent

I think we should indeed move it to his own repository, I'll do as soon as this PR is approuved
@n0izn0iz

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

Successfully merging this pull request may close these issues.

3 participants