Skip to content

Commit ceab729

Browse files
committed
docs: add a note about the risks of using setSubgraphNFT by the governor
1 parent 0a3888d commit ceab729

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts/discovery/GNS.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ contract GNS is GNSV2Storage, GraphUpgradeable, IGNS, Multicall {
188188

189189
/**
190190
* @dev Set the NFT registry contract
191+
* NOTE: Calling this function will break the ownership model unless
192+
* it is replaced with a fully migrated version of the NFT contract state
193+
* Use with care.
191194
* @param _subgraphNFT Address of the ERC721 contract
192195
*/
193196
function setSubgraphNFT(address _subgraphNFT) public onlyGovernor {

0 commit comments

Comments
 (0)