Skip to content

Instantly share code, notes, and snippets.

@elenadimitrova
Created August 9, 2016 18:51
Show Gist options
  • Select an option

  • Save elenadimitrova/9042a508f5e7916a44a643c21063e460 to your computer and use it in GitHub Desktop.

Select an option

Save elenadimitrova/9042a508f5e7916a44a643c21063e460 to your computer and use it in GitHub Desktop.
mapping(bytes32 => address) public organisations;
function createOrganisation(bytes32 key_)
{
var tokenLedger = new TokenLedger();
var eternalStorage = new EternalStorage();
var organisation = new Organisation(tokenLedger, eternalStorage);
eternalStorage.changeOwner(organisation);
organisations[key_] = organisation;
OrganisationCreated(organisation, now);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment