diff --git a/Contracts/Basic1155.sol b/Contracts/Basic1155.sol index f6387c6..855bb84 100644 --- a/Contracts/Basic1155.sol +++ b/Contracts/Basic1155.sol @@ -8,10 +8,7 @@ contract Basic is ERC1155, Ownable { constructor(string memory uri) ERC1155(uri) {} // Mint tokens to an address (only callable by the owner or forging contract) - function mint(address to, uint256 id, uint256 amount, bytes memory data) external onlyOwner { - _mint(to, id, amount, data); - } - + // Burn tokens from an address (only callable by the owner or forging contract) function burn(address from, uint256 id, uint256 amount) external onlyOwner { _burn(from, id, amount); diff --git a/Profile.html b/Profile.html new file mode 100644 index 0000000..42f0360 --- /dev/null +++ b/Profile.html @@ -0,0 +1,23 @@ + + + + + + User Profile + + + + + +

Welcome, Guest

+ + + + + + +

+ Back to Home + + + diff --git a/basicERC1155.sol b/basicERC1155.sol new file mode 100644 index 0000000..d3785d2 --- /dev/null +++ b/basicERC1155.sol @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; +import "@openzeppelin/contracts/access/Ownable.sol"; + +contract Basic is ERC1155, Ownable { + constructor(string memory uri) ERC1155(uri) {} + + // Mint tokens to an address (only callable by the owner or forging contract) + function mint(address to, uint256 id, uint256 amount, bytes memory data) external onlyOwner { + _mint(to, id, amount, data); + } + + // Burn tokens from an address (only callable by the owner or forging contract) + + function burn(address from, uint256 id, uint256 amount) external onlyOwner { + _burn(from, id, amount); + } +}