-
-
Save noaaizental/cf6284b95eea7345a195e15d6e900913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function BancorToken(string _name, string _symbol, uint8 _numDecimalUnits, address _formula, address _events) { | |
if (bytes(_name).length == 0 || bytes(_symbol).length < 1 || bytes(_symbol).length > 6 || _formula == 0x0) // validate input | |
throw; | |
name = _name; | |
symbol = _symbol; | |
numDecimalUnits = _numDecimalUnits; | |
formula = _formula; | |
events = _events; | |
if (events == 0x0) | |
return; | |
BancorEvents eventsContract = BancorEvents(events); | |
eventsContract.newToken(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment