Skip to content

Commit 062115a

Browse files
committed
fix: use erc mocks
1 parent 373a46b commit 062115a

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

‎test/ping-pong/docker-compose.yml

+20-14
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,18 @@ services:
9999

100100
proposer:
101101
image: ghcr.io/eyblockchain/nightfall3-proposer:latest
102+
# build:
103+
# dockerfile: proposer.Dockerfile
104+
# context: ../../
102105
networks:
103106
- nightfall_network
104-
volumes:
105-
- type: bind
106-
source: ../../common-files
107-
target: /app/common-files
108-
- type: bind
109-
source: ./proposer/src
110-
target: /app/test/ping-pong/proposer/src
107+
# volumes:
108+
# - type: bind
109+
# source: ../../common-files
110+
# target: /app/common-files
111+
# - type: bind
112+
# source: ./proposer/src
113+
# target: /app/test/ping-pong/proposer/src
111114
environment:
112115
OPTIMIST_HOST: optimist
113116
OPTIMIST_WS_PORT: 8080
@@ -119,15 +122,18 @@ services:
119122

120123
user-local:
121124
image: ghcr.io/eyblockchain/nightfall3-user-local:latest
125+
# build:
126+
# dockerfile: user-local.Dockerfile
127+
# context: ../../
122128
networks:
123129
- nightfall_network
124-
volumes:
125-
- type: bind
126-
source: ../../common-files
127-
target: /app/common-files
128-
- type: bind
129-
source: ./user-local/src
130-
target: /app/test/ping-pong/user-local/src
130+
# volumes:
131+
# - type: bind
132+
# source: ../../common-files
133+
# target: /app/common-files
134+
# - type: bind
135+
# source: ./user-local/src
136+
# target: /app/test/ping-pong/user-local/src
131137
environment:
132138
OPTIMIST_HOST: optimist
133139
OPTIMIST_WS_PORT: 8080

‎test/ping-pong/user-local/src/index.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ async function localTest() {
2727
userEthereumSigningKey,
2828
);
2929
await nf3.init(zkpMnemonic);
30-
if (await nf3.healthcheck('client')) console.log('Healthcheck passed');
30+
if (await nf3.healthcheck('client')) logger.info('Healthcheck passed');
3131
else throw new Error('Healthcheck failed');
32-
const ercAddress = await nf3.getContractAddress('ERCStub'); // TODO use proper mock contracts
32+
const ercAddress = await nf3.getContractAddress('ERC20Mock'); // TODO use proper mock contracts
3333
const startBalance = await nf3.getLayer2Balances();
3434
await nf3.deposit(ercAddress, 'ERC20', 1, '0x00');
3535
await nf3.deposit(ercAddress, 'ERC20', 1, '0x00');

0 commit comments

Comments
 (0)