16-digit integer, like: 8356281049284737
Contract.sol
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
.
>=0.5.0 <0.6.0
.ZombieFactory
.Code
pragma solidity >=0.5.0 <0.6.0;
contract ZombieFactory {
}