Skip to content

Instantly share code, notes, and snippets.

@Tschakki
Created June 8, 2020 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tschakki/791f7f41ec9becfc8059d0c2fd1f9c73 to your computer and use it in GitHub Desktop.
Save Tschakki/791f7f41ec9becfc8059d0c2fd1f9c73 to your computer and use it in GitHub Desktop.
Decentralized Organization Chain - Register Investor tx snippet
if (!user.type || user.type !== "investor") {
errors.push(
new TransactionError("Invalid user type for this transaction.")
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment