Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typos in Assets/MirageSDK/Examples/Scripts/UseCases/WearableNFTs/…
…ReadMe.md
  • Loading branch information
MonkeyKing44 committed Feb 19, 2025
commit 6a63f3e7dd22f157ba3b423463dddbdb47bfface
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To start this Use Case we will first need to initializethe SDKWrapper and store

You can then use the different functions available to interact with the contracts, these are inside the script WearableNFTExample.cs.

The MintItems and MintCharacter functions are there just to showcase how these would work in a server side environment. Those functions should not work if used by the client because he does not have the minter role and shouldnt have it for security reasons. The minter Role should be given to the server and the client should send a request to mint directly to the server.
The MintItems and MintCharacter functions are there just to showcase how these would work in a server side environment. Those functions should not work if used by the client because he does not have the minter role and shouldn't have it for security reasons. The minter Role should be given to the server and the client should send a request to mint directly to the server.

The Contract with the minter rôle requirement should look like this :
```solidity
Expand All @@ -27,7 +27,7 @@ function safeMint(address to) public onlyRole(MINTER_ROLE) {

```

Using the ChangeHat Functions you can change the NFT-Hat currently used by the NFT-Character. For this to work you have to link the adress of your hat and you should own the character that you want to equip the hat on as written on the contract. If the character already has a hat equiped the old one will be sent back to your wallet.
Using the ChangeHat Functions you can change the NFT-Hat currently used by the NFT-Character. For this to work you have to link the address of your hat and you should own the character that you want to equip the hat on as written on the contract. If the character already has a hat equipped the old one will be sent back to your wallet.

```solidity
function changeHat(uint256 characterId, uint256 newHatId) public {
Expand All @@ -48,5 +48,5 @@ function changeHat(uint256 characterId, uint256 newHatId) public {

```

The GetHat Function will allow you to check which hat is equiped on the character.
The GetTokenInfo Function will allow you to get informations on the Character NFT you own (if you have multiple ones it will take the 1st).
The GetHat Function will allow you to check which hat is equipped on the character.
The GetTokenInfo Function will allow you to get information on the Character NFT you own (if you have multiple ones it will take the 1st).