mirror of
https://github.com/tornadocash/deployer.git
synced 2024-11-23 10:27:14 +01:00
return address
This commit is contained in:
parent
4dd141a398
commit
c6526c7f02
@ -16,8 +16,8 @@ contract Deployer {
|
||||
|
||||
event Deployed(address indexed sender, address indexed addr);
|
||||
|
||||
function deploy(bytes memory _initCode, bytes32 _salt) external {
|
||||
address createdContract = deployer.deploy(_initCode, _salt);
|
||||
function deploy(bytes memory _initCode, bytes32 _salt) external returns (address payable createdContract) {
|
||||
createdContract = deployer.deploy(_initCode, _salt);
|
||||
require(createdContract != address(0), "Deploy failed");
|
||||
emit Deployed(msg.sender, createdContract);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user