DCIPs/assets/eip-5496/contracts/ERC5496CloneableDemo.sol

28 lines
642 B
Solidity

// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
import "./extensions/ERC5496Cloneable.sol";
contract ERC5496CloneableDemo is ERC5496Cloneable {
constructor(string memory name_, string memory symbol_)
ERC5496(name_,symbol_)
{
}
function mint(uint256 tokenId, address to) public {
_mint(to, tokenId);
}
function setPrivilegeTotal(uint total) external {
_setPrivilegeTotal(total);
}
function increasePrivileges(bool _cloneable) external {
uint privId = privilegeTotal;
_setPrivilegeTotal(privilegeTotal + 1);
cloneable[privId] = _cloneable;
}
}