Skip to content

Commit

Permalink
cleanup: remove chain condition from deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bayram98 committed Jun 23, 2023
1 parent d0b4dc2 commit bdf85db
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions deploy/0-VRFConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types'
import { DeployFunction } from 'hardhat-deploy/types'

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts, network } = hre
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer, vrfCoordinator: coordinatorAddress } = await getNamedAccounts()

console.log('0-VRFConsumer.ts')

if (network.name == 'localhost') {
console.log('Skipping')
return
}

await deploy('VRFConsumer', {
args: [coordinatorAddress],
from: deployer,
Expand Down

0 comments on commit bdf85db

Please sign in to comment.