mirror of
https://github.com/PatrickAlphaC/dungeons-and-dragons-nft.git
synced 2021-05-29 14:48:35 +03:00
12 lines
547 B
JavaScript
12 lines
547 B
JavaScript
const DungeonsAndDragons = artifacts.require('DungeonsAndDragonsCharacter')
|
|
|
|
module.exports = async callback => {
|
|
const dnd = await DungeonsAndDragons.deployed()
|
|
console.log('Creating requests on contract:', dnd.address)
|
|
// const tx = await dnd.requestNewRandomCharacter(77, "Julian the Knight")
|
|
// const tx2 = await dnd.requestNewRandomCharacter(7777777, "Sergey the Elf")
|
|
const tx3 = await dnd.requestNewRandomCharacter(7, "Ari the Wizard")
|
|
// const tx4 = await dnd.requestNewRandomCharacter(777, "Pepe the Orc")
|
|
callback(tx.tx)
|
|
}
|