mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-02-26 04:35:15 +00:00
add return factoried contract address + add emit keyword
This commit is contained in:
parent
79da42e2ba
commit
f9870224be
@ -17,16 +17,19 @@ contract IdentityFactory is Factory {
|
||||
|
||||
function createIdentity()
|
||||
external
|
||||
returns (address)
|
||||
{
|
||||
createIdentity(msg.sender);
|
||||
return createIdentity(msg.sender);
|
||||
}
|
||||
|
||||
function createIdentity(address _idOwner)
|
||||
public
|
||||
returns (address)
|
||||
{
|
||||
IdentityKernel instance = IdentityKernel(new DelayedUpdatableInstance(address(latestKernel)));
|
||||
instance.initIdentity(_idOwner);
|
||||
IdentityCreated(address(instance));
|
||||
emit IdentityCreated(address(instance));
|
||||
return instance;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user