-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Composable-transactionMint #5276
Conversation
…mposable-transactionMint
✅ Deploy Preview for koda-nuxt ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
this PR covers minting Token composable |
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 would rather do this first |
Yeah sorry, closing that was a bit harsh. Sorry for that I just overreacted I just rather do the collections first, it is much easier and 80% of pinning logic can be extracted away. The reasoning is this is hard to review. Contains a lot of dupictated code. |
Yeah, it was challenging to write as well I'll do the collection minting, sure But as for this one, how about I split the files to make it easier read? And there are actually no duplications |
Yes please decompose pinning from the file
Yeah I think it's easier to do. Sorry one more time for closing that 🙈 and thanks @roiLeo for reopening that |
Hey! I don't want to interfere but I've just tested on snek ( |
Thanks @roiLeo |
But so far really good job 🤗 |
…mposable-transactionMint
…i/nft-gallery into composable-transactionMint
composables/transaction/mintCollection/transactionMintCollectionBasilisk.ts
Show resolved
Hide resolved
Can please @JustLuuuu or @helloitsdamsky test? |
/reviewpad summarize |
If Im using the correct Deploy link for testing, it's still not working for me: I have created a new wallet especially to test this while I was writing an article about minting on Basilisk. This account has exactly 0 bsx tokens. Only KSM (bridged). I believe even if you set KSM as a fee, it still somehow requires bsx. Test it with a wallet where you have 0 bsx. When I tried to test it with a wallet where I had some bsx tokens. It worked. |
This pull request includes various changes across multiple files. Changes involve new functions, types, and modifications to existing functions related to minting NFTs and collections. The |
strongly suspect it has to do with this: |
I had a chat with @JustLuuuu who confirmed minting on Kusama works |
@@ -43,33 +43,22 @@ import { | |||
getMetadataDeposit, | |||
getclassDeposit, | |||
} from '@/components/unique/apiConstants' | |||
import { getRandomValues, hasEnoughToken } from '@/components/unique/utils' | |||
import { uploadDirect } from '@/utils/directUpload' | |||
import { hasEnoughToken } from '@/components/unique/utils' |
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.
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.
didn't touch that either, it is marked because of changed imports
it is never called..
see the comment out line below
// await this.checkBalanceBeforeTx()
showNotification(
this.$t('mint.creatingCollection', { name: this.base.name }),
notificationTypes.info
)
this.status = 'loader.ipfs'
transaction({
offsetAttribute, | ||
secondaryFileVisible, | ||
} from '@/components/rmrk/Create/mintUtils' | ||
import { offsetAttribute } from '@/utils/mintUtils' |
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.
you cannot currently use offset attribute in BSX
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.
oh ok, this is not something I've changed in this PR
It's marked because I've moved mintUtils
remove it?
setTimeout( | ||
() => | ||
this.listForSale( | ||
createdNFTs.value, | ||
blockNumber.value as string | ||
), | ||
300 |
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.
Isn't this failing?
Because you can't see this
in arrow fn
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 was wondering the same, but no. it works
|
||
const create = api.tx.nft.mint(collectionId, nextId, metadata) | ||
|
||
const list = price |
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.
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.
sorry i don't follow
are you saying i should check that price isn't 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.
resolved
const list = Boolean(Number(price))
? [api.tx.marketplace.setPrice(collectionId, nextId, price)]
: []
More like suggestions otherwise LGTM |
pay 100 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Code Climate has analyzed commit 2740e9f and detected 14 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type
Context
transactionMint
#5034Before submitting pull request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot 📸