Skip to content

Commit

Permalink
Remove default export names
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Damer committed Jun 5, 2023
1 parent b02d486 commit 283a7b1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion scripts/deployContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ethers, run, upgrades } from 'hardhat'
import { utils } from 'ethers'
import parseError from './helpers/parseError'

export default async function deployContact({
export default async function ({
constructorArguments,
contractName,
chainName,
Expand Down
5 changes: 1 addition & 4 deletions scripts/helpers/addBasicFeeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { Signer } from 'ethers'
import basicFeeds from './data'
import parseError from './parseError'

export default async function addBasicFeeds(
contractAddress: string,
signer: Signer
) {
export default async function (contractAddress: string, signer: Signer) {
try {
console.log('Adding basic feeds')
const contract = Feeds__factory.connect(contractAddress, signer)
Expand Down
5 changes: 1 addition & 4 deletions scripts/helpers/addContractToPaymaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { GSN_PAYMASTER_CONTRACT } from '../../hardhat.config'
import { Signer } from 'ethers'
import parseError from './parseError'

export default async function addContractToPaymaster(
contractAddress: string,
signer: Signer
) {
export default async function (contractAddress: string, signer: Signer) {
try {
console.log(
`Adding ${contractAddress} to ${GSN_PAYMASTER_CONTRACT} paymaster targets`
Expand Down
6 changes: 2 additions & 4 deletions scripts/helpers/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CIDStruct } from '../../typechain/contracts/Feeds'

const hashAndSize = { hashFunction: 18, size: 32 }

const basicFeeds: CIDStruct[] = [
export default [
{
// t/devFeed
digest:
Expand All @@ -21,6 +21,4 @@ const basicFeeds: CIDStruct[] = [
'0x0b071ef9c2bb401453036d9c96debd2c9478ec185f2a903edaf5afff2ae791db',
...hashAndSize,
},
]

export default basicFeeds
] as CIDStruct[]
2 changes: 1 addition & 1 deletion scripts/helpers/parseError.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function parseError(error: unknown) {
export default function (error: unknown) {
error instanceof Error ? error.message : error
}

0 comments on commit 283a7b1

Please sign in to comment.