Chris Buren

Practice on creating objects that could become NFTs with certain traits.

Chris Buren

Created At

ETHOnline 2021

Project Description

This is a smart contract that can create 'objects' that are virtual spiders, similar to crypto kitties. It has three attributes: number of legs, name, and color. Number of legs is an unsigned integer, so it must be positive. Name and color are both strings, so they must be letters and characters. Someone can interact with the contract and create a 'spider' object and they can specify what name they want it to have, what color, and what number of legs. The long term product roadmap will automatically create the spider as an NFT, with the right name, color and number of legs.

How it's Made

This project uses the solidity language as a backend. It has on class (makeSpider) and test is run later in the contract where a spider "bob" is created, has a "blue" color and has 8 legs. To later improve on this project, one can hook it up to a front end using node.js or react.

background image mobile

Join the mailing list

Get the latest news and updates