Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'

import { expect } from '../../../setup'
import {
setProxyTarget,
NON_NULL_BYTES32,
NON_ZERO_ADDRESS,
DUMMY_BATCH_HEADERS,
Expand Down Expand Up @@ -57,10 +56,9 @@ describe('L1CrossDomainMessenger', () => {
Fake__L2CrossDomainMessenger.address
)

await setProxyTarget(
AddressManager,
await AddressManager.setAddress(
'StateCommitmentChain',
Fake__StateCommitmentChain
Fake__StateCommitmentChain.address
)

CanonicalTransactionChain = await deploy('CanonicalTransactionChain', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { TransactionResponse } from '@ethersproject/abstract-provider'
/* Internal Imports */
import {
deploy,
setProxyTarget,
L2_GAS_DISCOUNT_DIVISOR,
ENQUEUE_GAS_COST,
getEthTime,
Expand Down Expand Up @@ -59,10 +58,9 @@ describe('[GAS BENCHMARK] CanonicalTransactionChain [ @skip-on-coverage ]', () =
'StateCommitmentChain'
)

await setProxyTarget(
AddressManager,
await AddressManager.setAddress(
'StateCommitmentChain',
Fake__StateCommitmentChain
Fake__StateCommitmentChain.address
)

CanonicalTransactionChain = await deploy('CanonicalTransactionChain', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import _ from 'lodash'
import { expect } from '../../../setup'
import {
deploy,
setProxyTarget,
L2_GAS_DISCOUNT_DIVISOR,
ENQUEUE_GAS_COST,
setEthTime,
Expand Down Expand Up @@ -67,10 +66,9 @@ describe('CanonicalTransactionChain', () => {
'StateCommitmentChain'
)

await setProxyTarget(
AddressManager,
await AddressManager.setAddress(
'StateCommitmentChain',
Fake__StateCommitmentChain
Fake__StateCommitmentChain.address
)

CanonicalTransactionChain = await deploy('CanonicalTransactionChain', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { smock, FakeContract } from '@defi-wonderland/smock'
import { expect } from '../../../setup'
import {
deploy,
setProxyTarget,
NON_NULL_BYTES32,
getEthTime,
increaseEthTime,
Expand All @@ -30,15 +29,14 @@ describe('StateCommitmentChain', () => {
'CanonicalTransactionChain'
)

await setProxyTarget(
AddressManager,
await AddressManager.setAddress(
'CanonicalTransactionChain',
Fake__CanonicalTransactionChain
Fake__CanonicalTransactionChain.address
)

Fake__BondManager = await smock.fake<Contract>('BondManager')

await setProxyTarget(AddressManager, 'BondManager', Fake__BondManager)
await AddressManager.setAddress('BondManager', Fake__BondManager.address)

Fake__BondManager.isCollateralized.returns(true)

Expand Down
1 change: 0 additions & 1 deletion packages/contracts/test/helpers/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './dummy'
export * from './constants'
export * from './resolver'
export * from './utils'
export * from './codec'
export * from './test-runner'
Expand Down
17 changes: 0 additions & 17 deletions packages/contracts/test/helpers/resolver/address-manager.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/contracts/test/helpers/resolver/index.ts

This file was deleted.