Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Blockchain Quick Start Guide

You're reading from   Blockchain Quick Start Guide A beginner's guide to developing enterprise-grade decentralized applications

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781789807974
Length 222 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Xun (Brian) Wu Xun (Brian) Wu
Author Profile Icon Xun (Brian) Wu
Xun (Brian) Wu
Weimin Sun Weimin Sun
Author Profile Icon Weimin Sun
Weimin Sun
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Introduction to Blockchain Technology FREE CHAPTER 2. Ethereum Fundamentals 3. Overview of Solidity Programming 4. Building an Ethereum Blockchain Application 5. Exploring an Enterprise Blockchain Application Using Hyperledger Fabric 6. Implementing Business Networks Using Hyperledger Composer 7. Blockchain Use Cases 8. Other Books You May Enjoy

Deploying a smart contract

As you might have noticed, two migration-related files were created by the previous command, Migrations.sol and 1_initial_migration.js. Migrations.sol stores a number that corresponds to the last applied "migration" script. When you add a new contract and deploy the contract, the number of the last deployment in stores will increase. After the contract has run once, it will not run again. The numbering convention is x_script_name.js, with x starting at 1, that is 1_initial_migration.js. Your new contracts would typically come in scripts starting at 2_....

In our case, we will add a new migration contract to deploy CrowdFunding. Let's create a file called 2_deploy_contracts.js. 

CrowdFunding.sol defines the constructor as follows:

constructor (address _owner, uint _minimumToRaise, uint _durationProjects,
string _name...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime