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 ...

Get Hands-On Blockchain for Python Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.