Skip to content

Commit

Permalink
Fix scripts for aOS 4 (#409)
Browse files Browse the repository at this point in the history
* Use callback to force scripts to exit

* Fix Kernel base deployment in apm script
  • Loading branch information
izqui committed Aug 31, 2018
1 parent 3e70397 commit f6cd59b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/deploy-beta-apm.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ const tld = namehash('eth')
const label = '0x'+keccak256('aragonpm')

const getContract = name => artifacts.require(name)
const deployBases = async baseNames => {
const baseContracts = await Promise.all(baseNames.map(c => getContract(c).new()))

const baseInitArguments = {
Kernel: [ true ] // petrify
}

const deployBases = async baseNames => {
const baseContracts = await Promise.all(baseNames.map(c => getContract(c).new(...(baseInitArguments[c] || []))))
return baseContracts.map(c => c.address)
}

Expand Down Expand Up @@ -53,6 +57,7 @@ module.exports = async callback => {
const apmAddr = receipt.logs.filter(l => l.event == 'DeployAPM')[0].args.apm
console.log('deployed APM:', apmAddr)
console.log(apmAddr)
callback()
}

// Rinkeby APM: 0x700569b6c99b8b5fa17b7976a26ae2f0d5fd145c
1 change: 1 addition & 0 deletions scripts/deploy-beta-ens.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = async callback => {
console.log('Deployed ENS:', ens)

console.log(ens)
callback()
}

// Rinkeby ENS: 0xfbae32d1cde62858bc45f51efc8cc4fa1415447e

0 comments on commit f6cd59b

Please sign in to comment.