Skip to content

Commit

Permalink
add logging for registry object registration events (closes #771)
Browse files Browse the repository at this point in the history
  • Loading branch information
doerfli committed Dec 6, 2024
1 parent d5c0fda commit ab37b3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/registry/Registry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity ^0.8.20;

import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {AccessManaged} from "@openzeppelin/contracts/access/manager/AccessManaged.sol";
import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializable.sol";

Expand All @@ -16,7 +15,6 @@ import {IRelease} from "./IRelease.sol";
import {IRegisterable} from "../shared/IRegisterable.sol";
import {IStaking} from "../staking/IStaking.sol";
import {ReleaseRegistry} from "./ReleaseRegistry.sol";
import {TokenRegistry} from "./TokenRegistry.sol";
import {RegistryAdmin} from "./RegistryAdmin.sol";

/// @dev IMPORTANT
Expand Down Expand Up @@ -566,6 +564,8 @@ contract Registry is
initialOwner: NFT_LOCK_ADDRESS,
data: ""}),
true);

emit LogRegistryObjectRegistered(protocolNftId, NftIdLib.zero(), PROTOCOL(), false, address(0), NFT_LOCK_ADDRESS);
}

/// @dev register this registry
Expand Down Expand Up @@ -671,6 +671,8 @@ contract Registry is

// calls nft receiver
CHAIN_NFT.mint(info.initialOwner, info.nftId.toInt());

emit LogRegistryObjectRegistered(info.nftId, info.parentNftId, info.objectType, info.isInterceptor, info.objectAddress, info.initialOwner);
}

function _setAddressForNftId(NftId nftId, address objectAddress)
Expand Down

0 comments on commit ab37b3f

Please sign in to comment.