Register a Smart Contract
Learn to register a smart contract to the SFS
Registering a contract in the SFS means calling the register
function defined in the SFS contract and getting an SFS NFT in exchange. The call to the register function must be made from your smart contract. This means you will have to add some code and logic to your contract in order to register it to the SFS. You’ll find code to do this later on this guide.
This is the register function from the SFS:
There are 2 interesting things to note from the register function:
The register function receives (
address
_recipient
) as a parameter. This is the address where the NFT will be minted to.The SFS contract looks at the
msg.sender
in order to know what smart contract is being registered. This is why you need to call the register function from the contract you want to register. You can only do this once per contract.
Last updated
Was this helpful?