tweaks
This commit is contained in:
parent
7c7e65d86a
commit
fc1db76733
|
|
@ -87,6 +87,12 @@ contract GameData is ERC1155, Ownable, ERC1155Burnable {
|
|||
|
||||
//----------User Management--------------------/
|
||||
|
||||
uint256[] public userMintedIds;
|
||||
function GetUserMintedIds() public view returns(uint256[] memory){
|
||||
return userMintedIds;
|
||||
}
|
||||
|
||||
|
||||
function GetCurrentUserIndex() public view returns(uint256){
|
||||
return nextUserId;
|
||||
}
|
||||
|
|
@ -95,6 +101,7 @@ contract GameData is ERC1155, Ownable, ERC1155Burnable {
|
|||
require(msg.sender == operator || msg.sender == owner(), "Only the operator can do this");
|
||||
|
||||
_mint(newUserAddress, newUserId, 1, "");
|
||||
userMintedIds.push(newUserId);
|
||||
nextUserId++;
|
||||
}
|
||||
//------------------------------/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user