Skip to content

Commit

Permalink
removing unnecessary returns and deleting unnecessary config file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLiteplo committed Oct 2, 2024
1 parent b715177 commit e248134
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 70 deletions.
3 changes: 1 addition & 2 deletions v2-endpoint-deployment/deploy/000-ProxyAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'hardhat-deploy'

import { HardhatRuntimeEnvironment } from 'hardhat/types'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()
Expand All @@ -16,7 +16,6 @@ module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolea
skipIfAlreadyDeployed: true,
// gasPrice: '0',
})
return Promise.resolve(false)
}

module.exports.tags = ['ProxyAdmin']
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/000-Treasury.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HardhatRuntimeEnvironment } from 'hardhat/types'
import 'hardhat-deploy'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()
Expand Down
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/000-TreasuryFeeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types'

import { getEndpointV1Address } from './util'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()
Expand Down
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/002-ReceiveUln301.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types'

import { getEndpointV1Address } from './util'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deploy } = hre.deployments
const { getNamedAccounts } = hre
const { deployer } = await getNamedAccounts()
Expand Down
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/002-ReceiveUln301View.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types'
import 'hardhat-deploy'

import { getDeployedV1Address } from './util'
module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { proxyAdmin } = await getNamedAccounts()
Expand Down
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/004-ReceiveUln302.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '@nomiclabs/hardhat-ethers'

import { getDeployedAddress } from './util'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deploy } = hre.deployments
const { getNamedAccounts } = hre
const { deployer } = await getNamedAccounts()
Expand Down
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/004-ReceiveUln302View.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'hardhat-deploy'

import { getDeployedAddress } from './util'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()
Expand Down
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/101-DVNFeeLib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { BigNumber } = require('ethers')
import 'hardhat-deploy'
import '@nomiclabs/hardhat-ethers'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployments } = hre
const { deploy } = deployments
const { getNamedAccounts } = hre
Expand Down
2 changes: 1 addition & 1 deletion v2-endpoint-deployment/deploy/112-LzExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { isZKSyncBasedChain, networkToChain } from '@layerzerolabs/lz-definition

import { getDeployedAddress } from './util'

module.exports = async function (hre: HardhatRuntimeEnvironment): Promise<boolean> {
module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { relayer, proxyAdmin } = await getNamedAccounts()
Expand Down
60 changes: 0 additions & 60 deletions v2-endpoint-deployment/layerzero.config.ts

This file was deleted.

0 comments on commit e248134

Please sign in to comment.