Skip to content

Commit cffb6cc

Browse files
committed
scripts
1 parent a38c981 commit cffb6cc

File tree

4 files changed

+6
-53
lines changed

4 files changed

+6
-53
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ coverage.json
99
coverage
1010
contracts/Aavegotchi/facets/XingyunFacet.sol
1111
scripts/dep.js
12-
scripts/buyPortals.js
12+
scripts/portals.js

hardhat.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
matic: {
3030
url: 'https://rpc-mainnet.matic.network',
3131
accounts: [process.env.SECRET],
32+
// accounts: [process.env.PERSONALSECRET2],
3233
blockGasLimit: 20000000,
3334
gasPrice: 1000000000
3435
},

scripts/createHaunt.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
async function main () {
44
const aavegotchiDiamondAddress = ''
5-
const hauntSize = 100
5+
const hauntSize = 10000
66
const price = ethers.utils.parseEther('100')
77
const daoFacet = await ethers.getContractAt('DAOFacet', aavegotchiDiamondAddress)
88
const tx = await daoFacet.createHaunt(hauntSize, price, '0x000000')
99
const receipt = await tx.wait()
10+
if (!receipt.status) {
11+
throw Error(`Error creating haunt: ${tx.hash}`)
12+
}
1013
console.log('Haunt created:', tx.hash)
1114
}
1215

scripts/portals.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)