Skip to content

Instantly share code, notes, and snippets.

@noaaizental
Created October 17, 2017 08:35
Show Gist options
  • Save noaaizental/cf6284b95eea7345a195e15d6e900913 to your computer and use it in GitHub Desktop.
Save noaaizental/cf6284b95eea7345a195e15d6e900913 to your computer and use it in GitHub Desktop.
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