From bd9e62162245247f8fca9723a6e12ffb150c2edb Mon Sep 17 00:00:00 2001 From: poma Date: Thu, 5 Nov 2020 03:51:58 +0300 Subject: [PATCH] emit deploy event in constructor --- contracts/Deployer.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/Deployer.sol b/contracts/Deployer.sol index 23ab870..34deb19 100644 --- a/contracts/Deployer.sol +++ b/contracts/Deployer.sol @@ -11,6 +11,7 @@ contract Deployer { constructor(IDeployer _deployer) public { // Use EIP-2470 SingletonFactory address by default deployer = address(_deployer) == address(0) ? IDeployer(0xce0042B868300000d44A59004Da54A005ffdcf9f) : _deployer; + emit Deployed(msg.sender, address(this)); } event Deployed(address indexed sender, address indexed addr);