Minor cleanup.

This commit is contained in:
Sebastián Claudio Nale 2023-03-30 13:23:54 -03:00
parent ac631e2012
commit 06bfe7ac4b
2 changed files with 10 additions and 10 deletions

View File

@ -27,8 +27,8 @@ contract CoreRelayerSetters is CoreRelayerState, Context {
_state.provider.governanceContract = governanceContract;
}
function setChainId(uint16 chainId_) internal {
_state.provider.chainId = chainId_;
function setChainId(uint16 chainId) internal {
_state.provider.chainId = chainId;
}
function setWormhole(address wh) internal {

View File

@ -25,20 +25,20 @@ async function run() {
coreRelayerProxies: [],
}
for (let i = 0; i < chains.length; i++) {
console.log(`Deploying for chain ${chains[i].chainId}...`)
const coreRelayerLibrary = await deployCoreRelayerLibrary(chains[i])
for (const chain of chains) {
console.log(`Deploying for chain ${chain.chainId}...`)
const coreRelayerLibrary = await deployCoreRelayerLibrary(chain)
const coreRelayerImplementation = await deployCoreRelayerImplementation(
chains[i],
chain,
coreRelayerLibrary.address
)
const coreRelayerSetup = await deployCoreRelayerSetup(chains[i])
const coreRelayerSetup = await deployCoreRelayerSetup(chain)
const coreRelayerProxy = await deployCoreRelayerProxy(
chains[i],
chain,
coreRelayerSetup.address,
coreRelayerImplementation.address,
chains[i].wormholeAddress,
getRelayProviderAddress(chains[i])
chain.wormholeAddress,
getRelayProviderAddress(chain)
)
output.coreRelayerLibraries.push(coreRelayerLibrary)