From 11aa3a580d32de24dd9b4541ec3377361cc963c4 Mon Sep 17 00:00:00 2001 From: div72 <60045611+div72@users.noreply.github.com> Date: Sun, 10 Oct 2021 20:54:49 +0300 Subject: [PATCH] contract: add message and claim to parse --- src/gridcoin/contract/contract.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gridcoin/contract/contract.cpp b/src/gridcoin/contract/contract.cpp index 2e0cee2966..262f656c67 100644 --- a/src/gridcoin/contract/contract.cpp +++ b/src/gridcoin/contract/contract.cpp @@ -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; }