Created
June 8, 2020 12:39
-
-
Save Tschakki/791f7f41ec9becfc8059d0c2fd1f9c73 to your computer and use it in GitHub Desktop.
Decentralized Organization Chain - Register Investor tx snippet
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
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