Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

Pause/unpause functions using Pausable.sol

As we discussed previously, there are some examples of the Pausable contract where it can be used to control the life cycle of a contract. We can use Pausable where administrative functionality is needed.

However, if you use the Pausable contract, then the PauserRole role has to be assigned to the account(s) that you can trust to pause or unpause the contract. If you are using the Pausable contract in your decentralized application, then it might not be called a pure decentralized application since it has a centralized feature that can pause/unpause functionality of contract. However, according to your system architecture, you can use or avoid using the Pausable contract.

The OpenZeppelin contract ...

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

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content