Assign a Smart Contract
Learn to assign a smart contract to an existing SFS NFT
Assigning a contract to the SFS means linking your smart contract to an already existing SFS NFT. This also means that the revenue generated by that smart contract can be claimed with this NFT.
When you assign a contract there is no NFT being minted. This is useful when dApps have more than one smart contract then you can just register one contract to create the SFS NFT and assign the rest of the contracts to one SFS NFT. By doing this, you will have all the revenue from those contracts accumulated on one NFT.
Several contracts can be assigned to the same SFS NFT
Every contract can only be assigned to one SFS NFT
This is the code of the assign function:
Here are a few things to note:
The assign function needs to be called by a smart contract and not an EOA. It’s the same as the register function at this point.
The assign function does not mint an ownership NFT, rather, it assigns your smart contract to an existing SFS NFT
You can assign a contract to an SFS NFT and then change it to another one.
Last updated