Skip to content

Commit

Permalink
fixed CI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwitek committed Jul 12, 2024
1 parent fd179e9 commit 350bfd1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions sdk/sdk-e2e/tests/utils/sendAndLogTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ import { isHex } from 'viem/utils'
import { type TransactionInfo } from '@summerfi/sdk-common'
import { TransactionUtils } from './TransactionUtils'

if (!process.env.DEPLOYER_PRIVATE_KEY) {
throw new Error('DEPLOYER_PRIVATE_KEY not set')
}
if (!process.env.E2E_SDK_FORK_URL) {
throw new Error('E2E_SDK_FORK_URL not set')
}

const privateKey = process.env.DEPLOYER_PRIVATE_KEY
const forkUrl = process.env.E2E_SDK_FORK_URL

export async function sendAndLogTransactions(transactions: TransactionInfo[]) {
if (!process.env.DEPLOYER_PRIVATE_KEY) {
throw new Error('DEPLOYER_PRIVATE_KEY not set')
}
if (!process.env.E2E_SDK_FORK_URL) {
throw new Error('E2E_SDK_FORK_URL not set')
}
const privateKey = process.env.DEPLOYER_PRIVATE_KEY
const forkUrl = process.env.E2E_SDK_FORK_URL

console.log('transactions', transactions)

for (const [index, transaction] of transactions.entries()) {
Expand Down

0 comments on commit 350bfd1

Please sign in to comment.