Skip to content

Commit db55226

Browse files
committed
Fixing prod test
1 parent a1e9976 commit db55226

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/prod/Synthetix.prod.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ contract('Synthetix (prod tests)', accounts => {
237237
});
238238

239239
describe('when user exchanges sUSD into sETH using a Virtualynths', () => {
240-
const amount = toUnit('1');
240+
const amount = toUnit('100');
241241
let txn;
242242
let receipt;
243243
let userBalanceOfsETHBefore;
@@ -269,7 +269,11 @@ contract('Synthetix (prod tests)', accounts => {
269269
({ topics }) => topics[0] === vSynthCreationEvent.signature
270270
);
271271

272-
const decoded = web3.eth.abi.decodeLog(vSynthCreationEvent.inputs, log.data, log.topics);
272+
const decoded = web3.eth.abi.decodeLog(
273+
vSynthCreationEvent.inputs,
274+
log.data,
275+
log.topics.slice(1)
276+
);
273277

274278
vSynth = await artifacts.require('VirtualSynth').at(decoded.vSynth);
275279

0 commit comments

Comments
 (0)