Skip to content

Commit 8b5aae6

Browse files
authored
test(e2e): use offchainlabs nitro repo, enable automine on L1 (#895)
Signed-off-by: Tomás Migone <[email protected]>
1 parent 54219ed commit 8b5aae6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/e2e.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
3434
uses: ./.github/actions/setup
3535
- name: Run e2e tests
3636
run: |
37-
git clone https://github.com/edgeandnode/nitro
38-
pushd nitro
37+
git clone https://github.com/OffchainLabs/nitro-testnode/
38+
pushd nitro-testnode
39+
git checkout c47cb8c643bc8e63ff096f7f88f9152064d1532a
3940
git submodule update --init --recursive
40-
./test-node.bash --init --no-blockscout --detach
41+
sed -i'' -e 's/^\(.*dev.period.*\)/# \1/' docker-compose.yaml
42+
./test-node.bash --init --batchposters 0 --redundantsequencers 0 --detach
4143
popd
4244
L1_NETWORK=localnitrol1 L2_NETWORK=localnitrol2 yarn test:e2e

packages/contracts/tasks/deployment/nitro.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ task(TASK_NITRO_FUND_ACCOUNTS, 'Funds protocol accounts on Arbitrum Nitro testno
2121
// - L1 > https://github.com/OffchainLabs/nitro/blob/01c558c06ad9cbaa083bebe3e51960e195c3fd6b/test-node.bash#L136
2222
// - L2 > https://github.com/OffchainLabs/nitro/blob/01c558c06ad9cbaa083bebe3e51960e195c3fd6b/testnode-scripts/config.ts#L22
2323
const genesisAccountPrivateKey =
24-
taskArgs.privateKey ?? 'e887f7d17d07cc7b8004053fb8826f6657084e88904bb61590e498ca04704cf2'
24+
taskArgs.privateKey ?? 'b6b15c8cb491557369f3c7d2c287b053eb229daa9c22138887752191c9520659'
2525
const genesisAccount = new hre.ethers.Wallet(genesisAccountPrivateKey)
2626

2727
// Get protocol accounts
@@ -95,7 +95,7 @@ subtask(TASK_NITRO_FETCH_DEPLOYMENT_FILE, 'Fetches nitro deployment file from a
9595
.setAction(async (taskArgs) => {
9696
console.log(`Attempting to fetch deployment file from testnode...`)
9797

98-
const command = `docker exec $(docker ps -qf "name=sequencer") cat /workspace/localNetwork.json > ${taskArgs.deploymentFile}`
98+
const command = `docker container cp $(docker ps -alqf "name=tokenbridge" --format "{{.ID}}"):/workspace/localNetwork.json .`
9999
const stdOut = execSync(command)
100100
console.log(stdOut.toString())
101101

0 commit comments

Comments
 (0)