mirror of
https://github.com/PatrickAlphaC/dungeons-and-dragons-nft.git
synced 2021-05-29 14:48:35 +03:00
10 lines
326 B
JavaScript
10 lines
326 B
JavaScript
const DungeonsAndDragons = artifacts.require('DungeonsAndDragonsCharacter')
|
|
|
|
module.exports = async callback => {
|
|
const dnd = await DungeonsAndDragons.deployed()
|
|
console.log('Let\'s get the overview of your character')
|
|
const overview = await dnd.characters(0)
|
|
console.log(overview)
|
|
callback(overview.tx)
|
|
}
|