From b5e3c4be34c5f133d20c12444de4d9da27d9b65b Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Mon, 21 May 2018 13:57:52 -0400 Subject: [PATCH] simplify address lookup --- test/minimetoken.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/minimetoken.js b/test/minimetoken.js index d911652..6af6975 100644 --- a/test/minimetoken.js +++ b/test/minimetoken.js @@ -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();