Skip to content

Module 1 – Saying hello to the smart world (10 minutes)

herrerameri edited this page Nov 22, 2017 · 8 revisions

Open Remix.

You can see a default contract written in Solidity, the HelloWorld smart contract. Easy to understand!

HelloWorld

Note the word pragma. Source files can (and should) be annotated with a so-called version pragma to reject being compiled with future compiler versions that might introduce incompatible changes.

And a tip to learn: the constructor runs only when the contract is created.

So, we have our first smart contract!

Go to the next module.