Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
chore: revert unexpected change
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Dec 1, 2023
1 parent 3938b5a commit f44fd7c
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions deploy-migrations/3_initialize_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const MaticWeth = artifacts.require('MaticWETH')
const Governance = artifacts.require('Governance')
const EventsHubProxy = artifacts.require('EventsHubProxy')

async function updateContractMap(governance, registry, nameHash, value) {
return governance.update(
registry.address,
registry.contract.methods.updateContractMap(nameHash, value).encodeABI()
)
}

module.exports = async function(deployer) {
deployer.then(async() => {
await bluebird
Expand Down Expand Up @@ -47,46 +54,46 @@ module.exports = async function(deployer) {
TransferWithSigPredicate,
EventsHubProxy
) {
await utils.updateContractMap(
await updateContractMap(
governance,
registry,
'depositManager',
ethUtils.keccak256('depositManager'),
depositManagerProxy.address
)
await utils.updateContractMap(
await updateContractMap(
governance,
registry,
'withdrawManager',
ethUtils.keccak256('withdrawManager'),
withdrawManagerProxy.address
)
await utils.updateContractMap(
await updateContractMap(
governance,
registry,
'stakeManager',
ethUtils.keccak256('stakeManager'),
stakeManagerProxy.address
)
await utils.updateContractMap(
await updateContractMap(
governance,
registry,
'slashingManager',
ethUtils.keccak256('slashingManager'),
slashingManager.address
)
await utils.updateContractMap(
await updateContractMap(
governance,
registry,
'stateSender',
ethUtils.keccak256('stateSender'),
stateSender.address
)
await utils.updateContractMap(
await updateContractMap(
governance,
registry,
'wethToken',
ethUtils.keccak256('wethToken'),
MaticWeth.address
)
await utils.updateContractMap(
await updateContractMap(
governance,
registry,
'eventsHub',
ethUtils.keccak256('eventsHub'),
EventsHubProxy.address
)

Expand Down

0 comments on commit f44fd7c

Please sign in to comment.