Our two contracts are now complete, and we'll shortly describe how to deploy them to a network. Once they are deployed to the blockchain, we won't be able to change them: they will be immutable. This immutability means that it's important to ensure the code is correct the first time, as any bugs found after deployment will be difficult to fix.
To this end, when developing smart contracts, it's important to follow best practices. Here are some important considerations to keep in mind when writing smart contracts:
- Prepare for failure and bugs.
- Deploy carefully.
- Keep contracts as simple as possible.
- Ensure your tools and components are up to date.
- Understand how the blockchain works.