Skip to content

Commit

Permalink
Linting only
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpar committed Aug 7, 2023
1 parent c0aed4d commit 0822d07
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { helpers, deployments } = hre
const { log } = deployments

const BaseWormholeGateway = await deployments.getOrNull(
"BaseWormholeGateway"
)
const BaseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway")

if (
BaseWormholeGateway &&
helpers.address.isValid(BaseWormholeGateway.address)
) {
log(
`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`
)
log(`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`)
} else if (hre.network.name === "hardhat") {
log("using fake BaseWormholeGateway for hardhat network")
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await getNamedAccounts()

// Fake BaseWormholeGateway for local development purposes only.
const fakeBaseWormholeGateway =
"0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9"
const fakeBaseWormholeGateway = "0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9"

// See https://docs.wormhole.com/wormhole/blockchain-environments/evm#base
// This ID is valid for both Base Testnet and Mainnet
const baseWormholeChainID = 30

const baseWormholeGateway = await deployments.getOrNull(
"BaseWormholeGateway"
)
const baseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway")

let baseWormholeGatewayAddress = baseWormholeGateway?.address
if (!baseWormholeGatewayAddress && hre.network.name === "hardhat") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { helpers, deployments } = hre
const { log } = deployments

const BaseWormholeGateway = await deployments.getOrNull(
"BaseWormholeGateway"
)
const BaseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway")

if (
BaseWormholeGateway &&
helpers.address.isValid(BaseWormholeGateway.address)
) {
log(
`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`
)
log(`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`)
} else if (hre.network.name === "hardhat") {
log("using fake BaseWormholeGateway for hardhat network")
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await getNamedAccounts()

// Fake BaseWormholeGateway for local development purposes only.
const fakeBaseWormholeGateway =
"0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9"
const fakeBaseWormholeGateway = "0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9"

// See https://docs.wormhole.com/wormhole/blockchain-environments/evm#base
// This ID is valid for both Base Testnet and Mainnet
const baseWormholeChainID = 30

const baseWormholeGateway = await deployments.getOrNull(
"BaseWormholeGateway"
)
const baseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway")

let baseWormholeGatewayAddress = baseWormholeGateway?.address
if (!baseWormholeGatewayAddress && hre.network.name === "hardhat") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { helpers, deployments } = hre
const { log } = deployments

const BaseWormholeGateway = await deployments.getOrNull(
"BaseWormholeGateway"
)
const BaseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway")

if (
BaseWormholeGateway &&
helpers.address.isValid(BaseWormholeGateway.address)
) {
log(
`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`
)
log(`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`)
} else if (hre.network.name === "hardhat") {
log("using fake BaseWormholeGateway for hardhat network")
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,18 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await getNamedAccounts()

// Fake BaseWormholeGateway for local development purposes only.
const fakeBaseWormholeGateway =
"0x2af5DC16568EFF2d480a43A77E6C409e497FcFb9"
const fakeBaseWormholeGateway = "0x2af5DC16568EFF2d480a43A77E6C409e497FcFb9"

// See https://docs.wormhole.com/wormhole/blockchain-environments/evm#base
// This ID is valid for both Base Goerli and Mainnet
const baseWormholeChainID = 30

const baseWormholeGateway = await deployments.getOrNull(
"BaseWormholeGateway"
)
const baseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway")

let baseWormholeGatewayAddress = baseWormholeGateway?.address
if (!baseWormholeGatewayAddress && hre.network.name === "hardhat") {
baseWormholeGatewayAddress = fakeBaseWormholeGateway
log(
`fake BaseWormholeGateway address ${baseWormholeGatewayAddress}`
)
log(`fake BaseWormholeGateway address ${baseWormholeGatewayAddress}`)
}

await execute(
Expand Down

0 comments on commit 0822d07

Please sign in to comment.