Skip to content

Commit

Permalink
update dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
douglance committed Dec 11, 2024
1 parent 4723065 commit f92e150
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,5 @@ jobs:
- name: Generate network file
run: yarn gen:network

- name: debug
run: pwd && ls && cd packages && ls && cd sdk && ls

- name: Run integration tests
run: CI=true yarn test:integration
3 changes: 2 additions & 1 deletion packages/sdk/scripts/deployStandard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { constants, BigNumber, utils } from 'ethers'
import { MultiCaller } from '../src'
import axios from 'axios'
import prompt from 'prompts'
dotenv.config()
import path from 'path'
dotenv.config({ path: path.resolve(__dirname, '../../../.env') })

const privKey = process.env.PRIVKEY as string
if (!privKey) {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/scripts/genNetwork.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as dotenv from 'dotenv'
dotenv.config()
dotenv.config({ path: path.resolve(__dirname, '../../../.env') })
import { execSync } from 'child_process'
import * as fs from 'fs'

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/scripts/instantiate_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import { Signer } from 'ethers'
import { AdminErc20Bridger } from '../src/lib/assetBridger/erc20Bridger'

dotenv.config()
dotenv.config({ path: path.resolve(__dirname, '../../../.env') })

const arbKey = process.env['ARB_KEY'] as string
const ethKey = process.env['ETH_KEY'] as string
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/scripts/testSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
} from '../tests/integration/custom-fee-token/customFeeTokenTestHelpers'
import { fundParentSigner } from '../tests/integration/testHelpers'

dotenv.config()
dotenv.config({ path: path.resolve(__dirname, '../../../.env') })

const isTestingOrbitChains = process.env.ORBIT_TEST === '1'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import { expect } from 'chai'
import { ethers, constants, Wallet } from 'ethers'
import dotenv from 'dotenv'
import path from 'path'

import { parseEther, parseUnits } from '@ethersproject/units'

Expand All @@ -34,7 +35,7 @@ import { ChildToParentMessageStatus } from '../../../src'
import { ChildToParentMessage } from '../../../src/lib/message/ChildToParentMessage'
import { getNativeTokenDecimals } from '../../../src/lib/utils/lib'

dotenv.config()
dotenv.config({ path: path.resolve(__dirname, '../../../../.env') })

describeOnlyWhenCustomGasToken(
'EthBridger (with custom fee token)',
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/tests/integration/eth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import { expect } from 'chai'
import dotenv from 'dotenv'
import path from 'path'

import { Wallet } from '@ethersproject/wallet'
import { parseEther } from '@ethersproject/units'
Expand All @@ -44,7 +45,7 @@ import {
} from '../../src/lib/utils/lib'
import { parseUnits } from 'ethers/lib/utils'

dotenv.config()
dotenv.config({ path: path.resolve(__dirname, '../../../.env') })

describe('Ether', async () => {
beforeEach('skipIfMainnet', async function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'path'
import dotenv from 'dotenv'
import { JsonRpcProvider } from '@ethersproject/providers'
import { constants } from 'ethers'
Expand All @@ -8,7 +9,7 @@ import {
getArbitrumNetworkInformationFromRollup,
} from '../../src/lib/dataEntities/networks'

dotenv.config()
dotenv.config({ path: path.resolve(__dirname, '../../../.env') })

describe('getArbitrumNetworkInformationFromRollup', () => {
it('fetches information about arbitrum one', async () => {
Expand Down

0 comments on commit f92e150

Please sign in to comment.