Making the zombie Factory

Chapter 1

16-digit integer, like: 8356281049284737


Chapter 2: Contracts

Contract.sol

Version Pragma

All solidity source code should start with a "version pragma" — a declaration of the version of the Solidity compiler this code should use. This is to prevent issues with future compiler versions potentially introducing changes that would break your code.

For the scope of this tutorial, we'll want to be able to compile our smart contracts with any compiler version in the range of 0.5.0 (inclusive) to 0.6.0 (exclusive). It looks like this: pragma solidity >=0.5.0 <0.6.0;.

Exercise

To start creating our Zombie army, let's create a base contract called ZombieFactory.

  1. In the box to the right, make it so our contract uses solidity version >=0.5.0 <0.6.0.
  2. Create an empty contract called ZombieFactory.

Code

pragma solidity >=0.5.0 <0.6.0;

contract ZombieFactory {
}