Skip to content

Instantly share code, notes, and snippets.

View standix's full-sized avatar

Standix Officail standix

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