From 623353e9ad6b5bf9e6d6f820c3a4bfc525cda607 Mon Sep 17 00:00:00 2001 From: Noah Zinsmeister Date: Mon, 30 Dec 2019 15:57:43 -0500 Subject: [PATCH] make push syntax more explicit --- contracts/UniswapV2Factory.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/UniswapV2Factory.sol b/contracts/UniswapV2Factory.sol index f6ca589..b0861e4 100644 --- a/contracts/UniswapV2Factory.sol +++ b/contracts/UniswapV2Factory.sol @@ -44,7 +44,8 @@ contract UniswapV2Factory is IUniswapV2Factory { } IUniswapV2(exchange).initialize(token0, token1); _getExchange[token0][token1] = exchange; - emit ExchangeCreated(token0, token1, exchange, exchanges.push(exchange)); + exchanges.push(exchange); + emit ExchangeCreated(token0, token1, exchange, exchanges.length); } function setFactoryOwner(address _factoryOwner) external {