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

Fix/copies-on-basilisk #6996

Merged
merged 3 commits into from
Aug 30, 2023
Merged

Fix/copies-on-basilisk #6996

merged 3 commits into from
Aug 30, 2023

Conversation

daiagi
Copy link
Contributor

@daiagi daiagi commented Aug 28, 2023

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.

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

PR Type

  • Bugfix
  • Feature
  • Refactoring

Needs QA check

Context

https://basilisk.subscan.io/extrinsic/4090104-2
https://canary.kodadot.xyz/bsx/gallery/3103123271-2

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

Screenshot 📸

Copilot Summary

🤖 Generated by Copilot at d6fcb30

This pull request improves the functionality and user experience of minting multiple tokens on Basilisk and Statemine networks. It renames the edition field to copies and sets a default royalty recipient. It also refactors the code to use a common expandCopies function from the utils module to generate the tokens array.

🤖 Generated by Copilot at d6fcb30

Sing, O Muse, of the skillful coder who refines his craft
With expandCopies, a function of great utility and power
That multiplies the tokens with their names and metadata
And sends them forth to mint on different networks with ease.

@daiagi daiagi requested a review from a team as a code owner August 28, 2023 07:43
@daiagi daiagi requested review from stephenjason89 and Jarsen136 and removed request for a team August 28, 2023 07:43
@kodabot
Copy link
Collaborator

kodabot commented Aug 28, 2023

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

@netlify
Copy link

netlify bot commented Aug 28, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 2c7dc08
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/64ec51749ca2760008f4a391
😎 Deploy Preview https://deploy-preview-6996--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.

@reviewpad
Copy link
Contributor

reviewpad bot commented Aug 28, 2023

AI-Generated Summary: This pull request consists of two distinct modifications to a Vue component and several TypeScript modules.

In the first patch, changes are made to CreateToken.vue. The 'edition' ref variable and related calculation is replaced by 'copies'. Also, a small line of code which sets 'accountId.value' as the value of the 'address' field in 'royalty' ref, has been added.

The second patch deals with the utilisation of a function called expandCopies. A stray backslash symbol is deleted from CreateToken.vue. The expandCopies() function, previously housed in transactionMintStatemine.ts, is moved to utils.ts and then imported back into both transactionMintBasilisk.ts and transactionMintStatemine.ts. The difference from the original function handling is that it is now used within the getArgs() function in the transactionMintBasilisk.ts file. This function is used to create a deeper copy of tokens, handling each 'copy' as a separate token. The impact of this pull request appears to be the handling of multiple token copies and enhancing modularity by moving the expandCopies() function to a shared utility file, utils.ts.

@reviewpad reviewpad bot added small Pull request is small waiting-for-review labels Aug 28, 2023
@codeclimate
Copy link

codeclimate bot commented Aug 28, 2023

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

View more on Code Climate.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@prury
Copy link
Member

prury commented Aug 28, 2023

tried to mint something, but nothing happened: https://basilisk.subscan.io/tx/0xc1c032d4180d53237cd75ea38e847282b5f08804fcd124fb3e2726fda4a876ab

but seems that basilisk is specially slow today, will wait to see what happens

@daiagi
Copy link
Contributor Author

daiagi commented Aug 28, 2023

tried to mint something, but nothing happened

The transaction seems successful , do you not see the nfts in your account?

@prury
Copy link
Member

prury commented Aug 28, 2023

tried to mint something, but nothing happened

The transaction seems successful , do you not see the nfts in your account?

https://deploy-preview-6996--koda-canary.netlify.app/bsx/gallery/282897835-3
yes, i do not, but can be unrelated

@daiagi
Copy link
Contributor Author

daiagi commented Aug 28, 2023

I'll check your transaction more deeply and compare with mine.
In brief look it seems everything is alright and should be working

It did work for me, tested only once

@prury
Copy link
Member

prury commented Aug 28, 2023

I'll check your transaction more deeply and compare with mine. In brief look it seems everything is alright and should be working

It did work for me, tested only once

went to canary to mint something on this same collection and this message appears:
image

so, it seems that the space had been taken, but no nft

@prury
Copy link
Member

prury commented Aug 28, 2023

yes, we are probably having issues with basilisk atm, went to create a collection using canary and after some minutes it still won't show on my created collections list

https://basilisk.subscan.io/tx/0xf40c9239d98ad6129974033863811f717bd067df1a03b26b0ce2ccc7db215d03

@daiagi
Copy link
Contributor Author

daiagi commented Aug 29, 2023

yes, we are probably having issues with basilisk atm, went to create a collection using canary and after some minutes it still won't show on my created collections list

Yes I'm experiencing the same while testing

successful transaction:
image
https://basilisk.subscan.io/extrinsic/4098003-2

nothing shows:

image

@prury
Copy link
Member

prury commented Aug 29, 2023

#7016 preventing us from testing

@prury
Copy link
Member

prury commented Aug 30, 2023

working fine @daiagi
https://deploy-preview-6996--koda-canary.netlify.app/bsx/collection/282897835

@prury prury added the S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked label Aug 30, 2023
@yangwao
Copy link
Member

yangwao commented Aug 30, 2023

pay 50 usd

@yangwao yangwao merged commit ddf2ed4 into main Aug 30, 2023
@yangwao yangwao deleted the fix/copies-on-basilisk branch August 30, 2023 14:12
@yangwao
Copy link
Member

yangwao commented Aug 30, 2023

😍 Perfect, I’ve sent the payout
💵 $50 @ 4.58 USD/DOT ~ 10.917 $DOT
🧗 1cAsKZYNRb8dkSCpn4eVkEn6ycNZTGoDo5dGDgB8J1UUWK8
🔗 0x90a9b9edaf26bb7ab53000440334467cc3a74d12dd517238887b4cd2bae8b4ed

🪅 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 Aug 30, 2023
@daiagi
Copy link
Contributor Author

daiagi commented Aug 30, 2023

Hi @yangwao
Transaction failed

@roiLeo
Copy link
Contributor

roiLeo commented Aug 30, 2023

@Jarsen136 Tests fails here too (#6990 (review))

This was referenced Aug 30, 2023
@daiagi daiagi mentioned this pull request Aug 30, 2023
2 tasks
@yangwao yangwao removed the paid pull-request has been paid label Aug 31, 2023
@yangwao
Copy link
Member

yangwao commented Aug 31, 2023

pay 50 usd

@yangwao
Copy link
Member

yangwao commented Aug 31, 2023

😍 Perfect, I’ve sent the payout
💵 $50 @ 4.48 USD/DOT ~ 11.161 $DOT
🧗 1cAsKZYNRb8dkSCpn4eVkEn6ycNZTGoDo5dGDgB8J1UUWK8
🔗 0xb0561d175fdc8791f5bafd966711104665bb94e8d11c947218c562e7794792b6

🪅 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 Aug 31, 2023
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 S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked small Pull request is small waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copies don't work on Basilisk
5 participants