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

add nft #57

Closed
wants to merge 24 commits into from
Closed

add nft #57

wants to merge 24 commits into from

Conversation

aleeusgr
Copy link
Owner

@aleeusgr aleeusgr commented Apr 25, 2023

lucid minting

https://lucid.spacebudz.io/docs/getting-started/mint-assets/
main completes, but there is no new utxo in my wallet address.
Maybe I need to set collateral in the borrower wallet?

Copy link
Owner Author

@aleeusgr aleeusgr left a comment

Choose a reason for hiding this comment

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

Details

Tried creating minting policy from json, failed;
#59

Why?
Lucid instantiation: I am using an emulator, while the example uses provider instance.

mint-nft.ts Show resolved Hide resolved
src/mint.mjs Outdated Show resolved Hide resolved
src/nft.hl Outdated Show resolved Hide resolved
mint-nft.ts Show resolved Hide resolved
tests/lucid.test.ts Outdated Show resolved Hide resolved
}

const lender = await generateAccount({ lovelace: 75000000000n });
const borrower = await generateAccount({ lovelace: 100000000n });
Copy link
Owner Author

@aleeusgr aleeusgr Apr 25, 2023

Choose a reason for hiding this comment

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

@aleeusgr aleeusgr mentioned this pull request May 2, 2023
5 tasks
@aleeusgr aleeusgr changed the title Sniffle instantiate lucid emulator, how do I call it in test? Apr 26, 2023
@aleeusgr aleeusgr closed this Apr 26, 2023
@aleeusgr aleeusgr reopened this Apr 26, 2023
@aleeusgr aleeusgr changed the title instantiate lucid emulator, how do I call it in test? add nft Apr 26, 2023
@aleeusgr
Copy link
Owner Author

const utxos = await lucid.utxosAt(
recipient,
);
console.log(utxos);
Copy link
Owner Author

@aleeusgr aleeusgr Apr 27, 2023

Choose a reason for hiding this comment

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

image

I will recheck, but if I change to utxos.assets it's undefined

Copy link
Owner Author

Choose a reason for hiding this comment

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

Hello!

I'm bit stuck, maybe I'll get unstuck myself, but if you could review my pr😇

I added code for minting NFT to tests/lucid.test.ts L56;

It completes, but when I look at my wallet utxos, there isn't anything new there. L92

Using emulator.log(); didn't show anything interesting.

The best I could do is to print the minting transaction hash, L86

I suspect maybe I need to set the collateral in the wallet, right?

Thank you

@aleeusgr aleeusgr mentioned this pull request Apr 30, 2023
2 tasks
@aleeusgr aleeusgr closed this Apr 30, 2023
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.

None yet

1 participant