kopia lustrzana https://github.com/bugout-dev/dao
TerminusInitializer "init" method must be called by Diamond owner
rodzic
4b198dd3b4
commit
e836884d7b
|
@ -16,6 +16,7 @@ import "./LibTerminus.sol";
|
||||||
|
|
||||||
contract TerminusInitializer {
|
contract TerminusInitializer {
|
||||||
function init() external {
|
function init() external {
|
||||||
|
LibDiamond.enforceIsContractOwner();
|
||||||
LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();
|
LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();
|
||||||
ds.supportedInterfaces[type(IERC1155).interfaceId] = true;
|
ds.supportedInterfaces[type(IERC1155).interfaceId] = true;
|
||||||
ds.supportedInterfaces[type(IERC1155MetadataURI).interfaceId] = true;
|
ds.supportedInterfaces[type(IERC1155MetadataURI).interfaceId] = true;
|
||||||
|
|
Ładowanie…
Reference in New Issue