Skip to content

Commit

Permalink
Contractdeployer update + example script update (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
hareeshnagaraj authored Aug 16, 2019
1 parent dda5cf3 commit 1ab122c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions eth-contracts/migrations/4_staking.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = (deployer, network, accounts) => {
// const networkId = Registry.network_id
const config = contractConfig[network]
const treasuryAddress = config.treasuryAddress || accounts[0]
const versionerAddress = config.versionerAddress || accounts[0]

const token = await AudiusToken.deployed()
let staking = await deployer.deploy(Staking)
Expand All @@ -37,10 +36,12 @@ module.exports = (deployer, network, accounts) => {
['address', 'address'],
[token.address, treasuryAddress])

let contractDeployer = accounts[0]

// Initialize staking proxy
await ownedUpgradeabilityProxy.upgradeToAndCall(
staking.address,
initializeData,
{ from: versionerAddress })
{ from: contractDeployer })
})
}
4 changes: 2 additions & 2 deletions libs/examples/prod_initializeVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const serviceTypeList = ['discovery-provider', 'creator-node', 'content-service'
const dataWeb3ProviderEndpoint = 'https://core.poa.network:443'
const ethWeb3ProviderEndpoint = 'https://mainnet.infura.io/v3/c569c6faf4f14d15a49d0044e7ddd668'
const dataRegistryAddress = '0xC611C82150b56E6e4Ec5973AcAbA8835Dd0d75A2'
const ethRegistryAddress = '0x53CFeD846d43BbF4C092f5a5c6F618515Ae137C1'
const ethTokenAddress = '0x65ca91574256b2c194a964e340e8b0a802e17ec6'
const ethRegistryAddress = '0xb2be26Ca062c5D74964921B80DE6cfa28D9A36c0'
const ethTokenAddress = '0xADEf65C0f6a30Dcb5f88Eb8653BBFe09Bf99864f'
let latestVersionStr = '0.1.0'

const isServer = true
Expand Down

0 comments on commit 1ab122c

Please sign in to comment.