Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
constant_code_provider.cpp
Go to the documentation of this file.
1
6
#include "
runtime/common/constant_code_provider.hpp
"
7
8
namespace
kagome::runtime
{
9
10
ConstantCodeProvider::ConstantCodeProvider
(
common::Buffer
code)
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
kagome::common::SLBuffer
Class represents arbitrary (including empty) byte buffer.
Definition:
buffer.hpp:29
kagome::runtime::ConstantCodeProvider::ConstantCodeProvider
ConstantCodeProvider(common::Buffer code)
Definition:
constant_code_provider.cpp:10
kagome::common::Blob< 32 >
kagome::runtime
Definition:
author_api_impl.hpp:43
kagome::runtime::ConstantCodeProvider::getCodeAt
outcome::result< gsl::span< const uint8_t > > getCodeAt(const storage::trie::RootHash &at) const override
Definition:
constant_code_provider.cpp:13
kagome::runtime::ConstantCodeProvider::code_
common::Buffer code_
Definition:
constant_code_provider.hpp:24
constant_code_provider.hpp
core
runtime
common
constant_code_provider.cpp
Generated by
1.8.11