Skip to Content
Hands-On Blockchain for Python Developers
book

Hands-On Blockchain for Python Developers

by Arjuna Sky Kok
February 2019
Intermediate to advanced
450 pages
9h 59m
English
Packt Publishing
Content preview from Hands-On Blockchain for Python Developers

Deploying a smart contract that has arguments in its constructor

Let's deploy this smart contract to the Ethereum blockchain. However, we must first be aware that there are some things that complicate the situation. First, the event does not work in Ganache, so we have to deploy it to the Rinkeby network or the private Ethereum blockchain. Second, our smart contract has an argument in the constructor. To deploy a smart contract with arguments, we need to use a different method; we cannot use the normal method as demonstrated in Chapter 5, Populus Development Framework. In Chapter 5, Populus Development Framework, we deployed a smart contract using Populus this way: populus deploy --chain localblock Donation.

The Populus method can only deploy ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain in Action

Blockchain in Action

Bina Ramamurthy
Learn Python by Building a Blockchain and Cryptocurrency

Learn Python by Building a Blockchain and Cryptocurrency

Academind by Maximilian Schwarzmüller GmbH

Publisher Resources

ISBN: 9781788627856Supplemental Content