Skip to content

Commit

Permalink
contract: add message and claim to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
div72 committed Oct 11, 2021
1 parent 8d9571d commit 11aa3a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gridcoin/contract/contract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,12 +747,14 @@ Contract::Type::Type(ContractType type) : EnumByte(type)
Contract::Type Contract::Type::Parse(std::string input)
{
// Ordered by frequency:
if (input == "claim") return ContractType::CLAIM;
if (input == "beacon") return ContractType::BEACON;
if (input == "vote") return ContractType::VOTE;
if (input == "poll") return ContractType::POLL;
if (input == "project") return ContractType::PROJECT;
if (input == "scraper") return ContractType::SCRAPER;
if (input == "protocol") return ContractType::PROTOCOL;
if (input == "message") return ContractType::MESSAGE;

return ContractType::UNKNOWN;
}
Expand Down

0 comments on commit 11aa3a5

Please sign in to comment.