Kagome
Polkadot Runtime Engine in C++17
constant_code_provider.cpp
Go to the documentation of this file.
1 
7 
8 namespace kagome::runtime {
9 
11  : code_{std::move(code)} {}
12 
13  outcome::result<gsl::span<const uint8_t>> ConstantCodeProvider::getCodeAt(
14  const storage::trie::RootHash &) const {
15  return code_;
16  }
17 
18 } // namespace kagome::runtime
Class represents arbitrary (including empty) byte buffer.
Definition: buffer.hpp:29
outcome::result< gsl::span< const uint8_t > > getCodeAt(const storage::trie::RootHash &at) const override