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

Refactor: useTransaction for drop mint #9908

Merged
merged 8 commits into from
Apr 1, 2024
Merged

Conversation

Jarsen136
Copy link
Contributor

@Jarsen136 Jarsen136 commented Mar 28, 2024

Thank you for your contribution to the Koda - Generative Art Marketplace.

👇 __ Let's make a quick check before the contribution.

PR Type

  • Refactoring

Needs QA check

  • @kodadot/qa-guild please review

Context

use useTransaction to unify the minting process between paid and holderOf drop.

Did your issue had any of the "$" label on it?

Screenshot 📸

  • My fix has changed UI

@Jarsen136 Jarsen136 requested a review from a team as a code owner March 28, 2024 10:35
@Jarsen136 Jarsen136 requested review from preschian and removed request for a team March 28, 2024 10:35
@kodabot
Copy link
Collaborator

kodabot commented Mar 28, 2024

SUCCESS @Jarsen136 PR for issue #9750 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

Copy link

netlify bot commented Mar 28, 2024

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit e44074c
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/6609722932d33f000829d124
😎 Deploy Preview https://deploy-preview-9908--koda-canary.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.

@yangwao
Copy link
Member

yangwao commented Mar 28, 2024

@prury prury requested a review from daiagi March 28, 2024 13:36
@prury
Copy link
Member

prury commented Mar 28, 2024

Not related with PR:
I'm out of resources to test this:

  • my purple pills drop only gets nft ids that were already assigned
  • reflection of the sound(holder of test drop) doesn't seem to be working no more
  • was able to mint one on monotif test drop, listing button never loaded(Success modal):
    image

@prury prury mentioned this pull request Mar 28, 2024

const args = item.nfts.map((allocatedNft, index) =>
api.tx.nfts.mint(item.collectionId, allocatedNft.id, accountId.value, {
ownedItem: (item.availableSerialNumbers || [])[index] || null,
Copy link
Contributor

Choose a reason for hiding this comment

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

(item.availableSerialNumbers || [])[index]

could this error if index is out of bounds?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No error. If out of bounds, it returns undefined and falls back to null finally.

Copy link
Contributor

@daiagi daiagi left a comment

Choose a reason for hiding this comment

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

code looks clean and straightforward

@prury please verify that minting in all drops types still works

components/collection/drop/PaidGenerative.vue Outdated Show resolved Hide resolved
@yangwao
Copy link
Member

yangwao commented Mar 29, 2024

was able to mint one on monotif test drop, listing button never loaded(Success modal):

This is happening in production iirc from time to time.

@prury
Copy link
Member

prury commented Mar 29, 2024

code looks clean and straightforward

@prury please verify that minting in all drops types still works

please check: #9908 (comment)

@yangwao
Copy link
Member

yangwao commented Mar 31, 2024

please check: #9908 (comment)

@Jarsen136 is this still thing?

@Jarsen136
Copy link
Contributor Author

please check: #9908 (comment)

@Jarsen136 is this still thing?

NO. It means prury has tested and has not found a new bug/issue related to this PR. The issues mentioned above existed before.

I think it's ready to merge.

@prury
Copy link
Member

prury commented Mar 31, 2024

please check: #9908 (comment)

@Jarsen136 is this still thing?

Let me provide a better explanation: i could not test this PR because most test drops aren't working properly for me. But the problem is not coming from this PR, is from canary

@Jarsen136
Copy link
Contributor Author

Jarsen136 commented Mar 31, 2024

please check: #9908 (comment)

@Jarsen136 is this still thing?

Let me provide a better explanation: i could not test this PR because most test drops aren't working properly for me. But the problem is not coming from this PR, is from canary

This PR focuses on refactoring and unifying the minting process for both paid and holderOf drops.
I have tested this PR with the paid drop. Could you pick one of the drops and test it? The minting process is still the same as before.


Not related with PR:

my purple pills drop only gets nft ids that were already assigned

We already have this kind of issue. #9765

reflection of the sound(holder of test drop) doesn't seem to be working no more
was able to mint one on monotif test drop, listing button never loaded(Success modal):

Let's raise issues for these bugs as they are from canary.

Copy link

codeclimate bot commented Mar 31, 2024

Code Climate has analyzed commit e44074c and detected 0 issues on this pull request.

View more on Code Climate.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.8% Duplication on New Code

See analysis details on SonarCloud

@prury
Copy link
Member

prury commented Mar 31, 2024

This PR focuses on refactoring and unifying the minting process for both paid and holderOf drops. I have tested this PR with the paid drop. Could you pick one of the drops and test it? The minting process is still the same as before.

I'm aware of this and I'm not blaming you or this PR, i just want to make clear that while i can test a paid drop, i cannot verify if the holderOf minting works because of problems that exist outside this PR. And yes, an issue for those other problems was opened already.

Another reason that its preventing me from verifying this PR that just appeared is that stuff that i minted its not being reflected on koda, again, issue already opened for this problem, that is outside the scope of this PR.

Feel free to merge the PR, I'm just saying I'm unable to test PR because of external problems

Let's raise issues for these bugs as they are from canary.

done ✔️

@yangwao
Copy link
Member

yangwao commented Apr 1, 2024

Thanks!
pay 50 usd

@yangwao yangwao merged commit deb0205 into kodadot:main Apr 1, 2024
19 checks passed
@yangwao
Copy link
Member

yangwao commented Apr 1, 2024

😍 Perfect, I’ve sent the payout
💵 $50 @ 9.27 USD/DOT ~ 5.394 $DOT
🧗 16SjUbGKSdjCdWTy3NNT3JxbRVGGqD4mwkHpc6BD9U2Rp29Z
🔗 0x85ffa39445b193c3591c471439aa088c2f4fa1cdd1b7f40f1f571b1f91c92652

🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

@yangwao yangwao added the paid pull-request has been paid label Apr 1, 2024
This was referenced Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paid pull-request has been paid
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useTransaction in Drops
6 participants