Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx committed Oct 8, 2024
1 parent 30ee752 commit a7eb5e9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/arb-token-bridge-ui/synpress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TestERC20__factory } from '@arbitrum/sdk/dist/lib/abi/factories/TestERC
import { TestWETH9__factory } from '@arbitrum/sdk/dist/lib/abi/factories/TestWETH9__factory'
import { Erc20Bridger, EthBridger } from '@arbitrum/sdk'
import logsPrinter from 'cypress-terminal-report/src/installLogsPrinter'
import { getL2ERC20Address } from './src/util/TokenUtils'
import { fetchErc20Data, getL2ERC20Address } from './src/util/TokenUtils'
import specFiles from './tests/e2e/specfiles.json'
import { contractAbi, contractByteCode } from './testErc20Token'
import {
Expand Down Expand Up @@ -71,6 +71,16 @@ export default defineConfig({
logsPrinter(on)
await registerLocalNetwork()

try {
const data = await fetchErc20Data({
address: defaultL3CustomGasTokenNetwork.nativeToken!,
provider: new StaticJsonRpcProvider(ethRpcUrl)
})
console.log({ data })
} catch (err) {
console.log({ err })
}

const erc20Bridger = await Erc20Bridger.fromProvider(childProvider)
const ethBridger = await EthBridger.fromProvider(childProvider)
const isCustomFeeToken = isNonZeroAddress(ethBridger.nativeToken)
Expand Down Expand Up @@ -414,7 +424,6 @@ async function fundWeth(networkType: NetworkType) {

async function approveWeth() {
console.log('Approving WETH...')
console.log({ l1WethAddress })
const tx = await getWethContract(parentProvider, l1WethAddress).approve(
l1WethGateway,
constants.MaxInt256
Expand Down

0 comments on commit a7eb5e9

Please sign in to comment.