Compiling the contract

Now, it's time to compile and deploy the hello world contract. Start by running the truffle compile command in your console.

After a short while, you will get the compilation result. You may notice the message indicating that artifacts are saved in the default build folder, ./build/contracts:

If you go there, you will find a JSON file (the artifacts) created by the compilation with details about your contract (ABI, bytecode, and so on).

As Truffle hasn't complained about any errors, you can move forward and deploy your contract. In other cases, you might get warning messages that you can safely ignore, or adjust your code accordingly.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset