Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mkysel committed Oct 11, 2024
1 parent f98a7f3 commit a6dcd80
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/src/Nodes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ contract Nodes is ERC721, Ownable {
* Allow a NFT holder to update the HTTP address of their node
*/
function updateHttpAddress(uint256 tokenId, string calldata httpAddress) public {
console.log(tokenId, ownerOf(tokenId), _msgSender());
require(_msgSender() == ownerOf(tokenId), "Only the owner of the Node NFT can update its http address");
_nodes[tokenId].httpAddress = httpAddress;
_emitNodeUpdate(tokenId);
Expand Down

0 comments on commit a6dcd80

Please sign in to comment.