PatrickAlphaC / dungeons-and-dragons-nft

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

Error: Transaction: 0x12624ab93********** exited with an error (status 0) after consuming all gas #8

Closed chahakshah111 closed 3 years ago

chahakshah111 commented 3 years ago

Hey, @PatrickAlphaC i have cloned latest code of this repo.

So, i successfully deployed the D&D character: 0xA0813f82C27c18d2a0f9582Cb3a38919C43D9b29.

But, when i tired to execute funding script i got this error: image

Transaction: 0x12624ab938d0756cc33a9cbc9dc9168a5895cee29dd09157c7d96b4f874dd1a5.

Even with manual funding i'm getting error: image

And after that transaction just fails.

Can you please help me out with that. Thank you.

PatrickAlphaC commented 3 years ago

Thanks for making this issue. Seems truffle isn't giving a very helpful answer. Do you have LINK in your testnet account?

hieundx commented 3 years ago

This happens because the contract you deployed didn't contain any LINK. Creating a new character consumes LINK to generate the random number, which is paid by the contract. So just go to MetaMask and send the contract some LINK. Make sure the recipient is the contract at 0xA0813f82C27c18d2a0f9582Cb3a38919C43D9b29. I tested this out myself and was able to create a random character: https://rinkeby.etherscan.io/tx/0x9f02c489c48e2b81700ab976bcbc321991779cdb397c150c03a210e544adade4

sendlink

PatrickAlphaC commented 3 years ago

Closing for now, thanks @defiant99 !