Solidity utility contract for ✨doing things✨ with FNTN shards
> git clone [...]
> cd fntn-tools
> yarn
> truffle compile
> truffle test
contract myContract is FNTNConverter {
function claimForShard(uint shardNumber) public {
// Get tokenId in original FNTN contract
uint originalTokenId = shardIdToTokenId(shardNumber);
// Ensure the sender owns this shard
require(fntnContract.ownerOf(originalTokenId) == msg.sender);
// Do ~thing~ for shard owner
}
}