PatrickAlphaC / dungeons-and-dragons-nft

#chainlink #nft
MIT License
633 stars 278 forks source link

Problem running `generate-character.js` #14

Open massouji82 opened 2 years ago

massouji82 commented 2 years ago

I managed to fund the contract but when I try to run the generate-character script truffle exec scripts/generate-character.js --network rinkeby I get this error:

const tx = await dnd.requestNewRandomCharacter("The Chainlink Knight")

StatusError: Transaction: 0xXXXXX exited with an error (status 0). 
    at module.exports (dungeons-and-dragons-nft/scripts/generate-character.js:6:24)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)

The console output seems to indicate that there is an issue with the requestNewRandomCharacter method but to the best of my knowledge it is called correctly. Any support will be much appreciated!

PatrickAlphaC commented 2 years ago

Thanks for making this issue!

I'm not sure actually... perhaps this might be a truffle issue? I'm not sure what status 0 error is...