Skip to content

Instantly share code, notes, and snippets.

View alioha's full-sized avatar

Aleksej K alioha

  • Vilnius
View GitHub Profile
pragma solidity ^0.4.11;
/**
* @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);
0x07f468136036f82Dd1F1F4Cfb5421e6cC3bE9364
0x07f468136036f82Dd1F1F4Cfb5421e6cC3bE9364
0xaeDccEFf70098E0Dc19b519EA1f7696E724550bE