Quick start
Quick start for your in Creator Chain
Quick Start Guide: Deploy Your First Contract on Creator
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.20;
interface Sfs {
function register(address _recipient) external returns (uint256 tokenId);
}
contract Storage {
uint256 number;
constructor(){
// SFS contract address on testnet
Sfs sfsContract = Sfs(0xBBd707815a7F7eb6897C7686274AFabd7B579Ff6);
// Register this contract and assign the NFT to the deployer
sfsContract.register(msg.sender);
}
function store(uint256 num) public {
number = num;
}
function retrieve() public view returns (uint256){
return number;
}
}Last updated
