Skip to content

Commit cef4ca3

Browse files
author
Christopher Powroznik
committed
make the licenses non transferable
1 parent 9d5d9b9 commit cef4ca3

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/core/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const config = {
22
"arbitrumBlockExplorer": "https://arbiscan.io",
33
"arbitrumGoerliBlockExplorer": "https://goerli.arbiscan.io",
44
"defaultRpcUrl": "https://goerli-rollup.arbitrum.io/rpc",
5-
"nodeLicenseAddress": "0x21aff6e15A09265D9906C45bFC480C37F3BBbAA8",
6-
"refereeAddress": "0xC42eb633460fe2006eD1d4E56aD3152D35F81612",
5+
"nodeLicenseAddress": "0xef2174b8B6a5B822113A2362BA60926c0331a50B",
6+
"refereeAddress": "0x9E8B904A241388022d92C0054E21F0d2f6f178aF",
77
"rollupAddress": "0x082742561295f6e1b43c4f5d1e2d52d7FfE082f1"
88
};

packages/smart-contracts/contracts/NodeLicense.sol

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ contract NodeLicense is ERC721Enumerable, AccessControl {
114114
function supportsInterface(bytes4 interfaceId) public view override(ERC721Enumerable, AccessControl) returns (bool) {
115115
return super.supportsInterface(interfaceId);
116116
}
117+
118+
/**
119+
* @notice Overrides the transfer function of the ERC721 contract to make the token non-transferable.
120+
* @param from The current owner of the token.
121+
* @param to The address to receive the token.
122+
* @param tokenId The token id.
123+
*/
124+
function _transfer(address from, address to, uint256 tokenId) internal override {
125+
revert("NodeLicense: transfer is not allowed");
126+
}
117127
}
118128

119129

0 commit comments

Comments
 (0)