Skip to content

Commit

Permalink
chore: fmt!
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed May 28, 2024
1 parent 636d326 commit 4f84be0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions migrations/scripts/1_deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ module.exports = async function (deployer, network, [,,, master]) {
(await web3.eth.getCode(factoryAddr)).length < 3
) {
const WitnetDeployerImpl = artifacts.require(settings.getArtifacts(network).WitnetDeployer)
await deployer.deploy(WitnetDeployerImpl, {
from: settings.getSpecs(network)?.WitnetDeployer?.from || web3.utils.toChecksumAddress(master)
await deployer.deploy(WitnetDeployerImpl, {
from: settings.getSpecs(network)?.WitnetDeployer?.from || web3.utils.toChecksumAddress(master),
})
const factory = await WitnetDeployerImpl.deployed()
if (factory.address !== addresses?.default?.WitnetDeployer) {
Expand All @@ -38,8 +38,8 @@ module.exports = async function (deployer, network, [,,, master]) {
utils.isNullAddress(proxyAddr) ||
(await web3.eth.getCode(proxyAddr)).length < 3
) {
await deployer.deploy(WitnetProxy, {
from: settings.getSpecs(network)?.WitnetDeployer?.from || master
await deployer.deploy(WitnetProxy, {
from: settings.getSpecs(network)?.WitnetDeployer?.from || master,
})
if (WitnetProxy.address !== addresses?.default?.WitnetProxy) {
addresses[network].WitnetProxy = WitnetProxy.address
Expand Down
8 changes: 4 additions & 4 deletions migrations/scripts/5_apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ async function deploy (target) {
const artifact = artifacts.require(key)
const contract = artifacts.require(targets[key])
if (
(!utils.isNullAddress(addresses[network][targets[key]] || addresses?.default[targets[key]])
&& (await web3.eth.getCode(addresses[network][targets[key]] || addresses?.default[targets[key]])).length < 3)
|| addresses[network][targets[key]] === ""
|| selection.includes(targets[key])
(!utils.isNullAddress(addresses[network][targets[key]] || addresses?.default[targets[key]]) &&
(await web3.eth.getCode(addresses[network][targets[key]] || addresses?.default[targets[key]])).length < 3) ||
addresses[network][targets[key]] === "" ||
selection.includes(targets[key])
) {
utils.traceHeader(`Deploying '${key}'...`)
console.info(" ", "> account: ", from)
Expand Down
30 changes: 15 additions & 15 deletions settings/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = {
apiKey: "espace",
apiUrl: "https://evmapi-testnet.confluxscan.io/api/",
explorerUrl: "https://evmtestnet.confluxscan.io/",
}
},
},
"conflux:espace:mainnet": {
port: 9529,
Expand All @@ -142,7 +142,7 @@ module.exports = {
apiKey: "espace",
apiUrl: "https://evmapi.confluxscan.io/api",
explorerUrl: "https://evm.confluxscan.io/address",
}
},
},
"cronos:testnet": {
port: 8530,
Expand Down Expand Up @@ -301,7 +301,7 @@ module.exports = {
apiUrl: "https://sepolia-explorer.metisdevops.link/api",
// apiUrl: "https://api.routescan.io/v2/network/sepolia/evm/59902/etherscan",
explorerUrl: "https://sepolia-explorer.metisdevops.link",
}
},
},
"meter:testnet": {
port: 8523,
Expand All @@ -316,49 +316,49 @@ module.exports = {
network_id: 1284,
verify: {
apiUrl: "https://api-moonbeam.moonscan.io/api",
explorerUrl: "https://moonscan.io/"
}
explorerUrl: "https://moonscan.io/",
},
},
"moonbeam:moonriver": {
port: 7531,
network_id: 1285,
verify: {
apiUrl: "https://api-moonriver.moonscan.io/api",
explorerUrl: "https://moonriver.moonscan.io/"
}
explorerUrl: "https://moonriver.moonscan.io/",
},
},
"moonbeam:moonbase": {
port: 8531,
network_id: 1287,
gas: 15000000,
verify: {
apiUrl: "https://api-moonbase.moonscan.io/api",
explorerUrl: "https://moonbase.moonscan.io/"
}
explorerUrl: "https://moonbase.moonscan.io/",
},
},
"okx:oktchain:testnet": {
port: 8528,
network_id: 65,
verify: {
apiUrl: "https://www.oklink.com/api/explorer/v1/contract/verify/async/api",
explorerUrl: "https://www.okx.com/explorer/oktc/",
}
},
},
"okx:oktchain:mainnet": {
port: 9528,
network_id: 66,
verify: {
apiUrl: "https://www.oklink.com/api/explorer/v1/contract/verify/async/api/okctest",
explorerUrl: "https://www.okx.com/explorer/oktc-test/",
}
},
},
"okx:x1:sepolia": {
port: 8505,
network_id: 195,
verify: {
apiUrl: "https://www.okx.com/explorer/xlayer-test/api",
explorerUrl: "https://www.okx.com/explorer/xlayer-test"
}
explorerUrl: "https://www.okx.com/explorer/xlayer-test",
},
},
"optimism:sepolia": {
port: 8503,
Expand Down Expand Up @@ -387,7 +387,7 @@ module.exports = {
apiKey: process.env.ETHERSCAN_POLYGON_API_KEY,
apiUrl: "https://api-amoy.polygonscan.com/api",
explorerUrl: "https://amoy.polygonscan.com/",
}
},
},
"polygon:mainnet": {
port: 9535,
Expand All @@ -396,7 +396,7 @@ module.exports = {
apiKey: process.env.ETHERSCAN_POLYGON_API_KEY,
apiUrl: "https://api.polygonscan.com/api",
explorerUrl: "https://polygonscan.com/",
}
},
},
"polygon:zkevm:goerli": {
port: 8512,
Expand Down

0 comments on commit 4f84be0

Please sign in to comment.