emit deploy event in constructor

This commit is contained in:
poma 2020-11-05 03:51:58 +03:00
parent defd06b700
commit bd9e621622
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
1 changed files with 1 additions and 0 deletions

View File

@ -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);