hey guys,
I went through this tutorial:
When I got to part 1, with this text:
Mint the file
Now we’re going to tokenize our ticket into an NFT. This process is often called minting .
The command threw me this error:
minty mint ~/flight-to-the-moon.txt --name “Moon Flight #1 ” --description “This ticket serves as proof-of-ownership of a first-class seat on a flight to the moon.”
Error: unable to get token id
Console logged the code and saw it crapped out at this line:
const tokenId = await this.mintToken(ownerAddress, metadataURI)
From here, I went to the github to search issues and found this:
opened 05:03PM - 10 Apr 21 UTC
After deploying the contract locally the mint command will always return this er… ror message
```
minty mint ~/ticket.txt --name "Ticket" --description "This document serves as proof-of-ownershp for a ticket"
Error: unable to get token id
at Minty.mintToken (/minty/src/minty.js:272:15)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async Minty.createNFTFromAssetData (/minty/src/minty.js:126:25)
at async Command.createNFT (/minty/src/index.js:84:17)
at async Promise.all (index 0)
at async main (/minty/src/index.js:65:5)
```
When I try to inspect the incoming receipt from which the events are being read I see, it has an empty events field:
```
{
"to": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"contractAddress": null,
"transactionIndex": 0,
"gasUsed": {
"type": "BigNumber",
"hex": "0x59bc"
},
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x5eb469a830032125e7d960dfa856e9ab1141283694554d14533f03cc6486aed9",
"transactionHash": "0xd5990cb65b8ae6b1c1da583ae6839929065799cb90dd6c96e98116f168b482cd",
"logs": [],
"blockNumber": 5,
"confirmations": 1,
"cumulativeGasUsed": {
"type": "BigNumber",
"hex": "0x59bc"
},
"status": 1,
"byzantium": true,
"events": []
}
```
Versions:
Node: v15.14.0
npm: 7.9.0
go-ipfs: v0.9.0-dev
I downgraded the version to 0.8.0 and that still didn’t work.
Any suggestions?