change event to tx origin

This commit is contained in:
poma 2020-11-05 04:33:07 +03:00
parent bd9e621622
commit 5b83810b44
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +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));
emit Deployed(tx.origin, address(this));
}
event Deployed(address indexed sender, address indexed addr);