Kagome
Polkadot Runtime Engine in C++17
inherent_data.cpp
Go to the documentation of this file.
1 
7 
10  switch (e) {
11  case E::IDENTIFIER_ALREADY_EXISTS:
12  return "This identifier already exists";
13  case E::IDENTIFIER_DOES_NOT_EXIST:
14  return "This identifier does not exist";
15  }
16  return "Unknow error";
17 }
18 
19 namespace kagome::primitives {
20 
22  const kagome::primitives::InherentData &rhs) const {
23  return data == rhs.data;
24  }
25 
27  const kagome::primitives::InherentData &rhs) const {
28  return !operator==(rhs);
29  }
30 
31 } // namespace kagome::primitives
bool operator==(const InherentData &rhs) const
std::map< InherentIdentifier, common::Buffer > data
bool operator!=(const InherentData &rhs) const
InherentDataError
inherent data encode/decode error codes
OUTCOME_CPP_DEFINE_CATEGORY(kagome::primitives, InherentDataError, e)