Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
440 changes: 237 additions & 203 deletions contracts/MentoInterfaces.sol

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions contracts/identity/IdentityV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ contract IdentityV3 is
event ContractAdded(address indexed account);
event ContractRemoved(address indexed account);

event AccountConnected(address indexed connected, address indexed to);
event AccountDisconnected(address indexed disconnected, address indexed from);

function initialize(
address _owner,
IIdentity _oldIdentity
Expand Down Expand Up @@ -422,6 +425,7 @@ contract IdentityV3 is
require(connectedAccounts[account] == address(0x0), "already connected");

connectedAccounts[account] = msg.sender;
emit AccountConnected(account, msg.sender);
}

/**
Expand All @@ -434,6 +438,7 @@ contract IdentityV3 is
"unauthorized"
);
delete connectedAccounts[connected];
emit AccountDisconnected(connected, msg.sender);
}

/**
Expand Down
Loading