Skip to content

Instantly share code, notes, and snippets.

View pcncoin's full-sized avatar

PCN COIN pcncoin

View GitHub Profile
pragma solidity ^0.4.12;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);