Approving Equipment for Equipping and Upgrading
Before you can equip your hero with an Equipment NFT or upgrade your equipment, you'll need to approve the game's smart contract to handle your NFTs. The approve function allows the smart contract to move your NFTs, which is necessary for equipping and upgrading equipment. Here's some information about the approval process and how it works in Guild of Chains:
Why Approval is Necessary?
Approving the smart contract to handle your Equipment NFTs is essential for two main reasons:
Equipping: When you equip an item to your hero, the Equipment NFT is transferred from your wallet to the smart contract. This allows the game to manage and track the equipment associated with your hero. Don't worry, you can always unequip the items and have them returned to your wallet.
Upgrading: Upgrading your equipment involves a risk-reward mechanism. As you attempt to upgrade your equipment, there's a chance of success and failure. If you fail to upgrade, the equipment will be burned (removed from your wallet). The approval process is necessary to allow the smart contract to burn the equipment if the upgrade attempt fails.
Always feel free to reach us if you have any question.
Last updated