simplify address lookup

This commit is contained in:
Barry Gitarts 2018-05-21 13:57:52 -04:00
parent bea6deb15e
commit b5e3c4be34
1 changed files with 1 additions and 3 deletions

View File

@ -61,9 +61,7 @@ describe("MiniMeToken", async function() {
'MMTc',
0,
true).send({ from: accounts[0]});
let addr = miniMeTokenCloneTx.events.NewCloneToken.raw.topics[1];
addr = `0x${addr.slice(26)}`;
addr = web3.utils.toChecksumAddress(addr);
let addr = miniMeTokenCloneTx.events.NewCloneToken.returnValues[0];
miniMeTokenClone = new web3.eth.Contract(MiniMeToken._jsonInterface, addr);
b[3] = await web3.eth.getBlockNumber();