cpp: Rename host to HostContext

This commit is contained in:
Paweł Bylica 2019-03-28 16:23:23 +01:00
parent 5b59cf0e95
commit 1a3ca7618d
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with 3 additions and 3 deletions

View File

@ -80,13 +80,13 @@ private:
/// Wrapper around EVMC host context / host interface. /// Wrapper around EVMC host context / host interface.
class host class HostContext
{ {
evmc_context* context = nullptr; evmc_context* context = nullptr;
evmc_tx_context tx_context = {}; evmc_tx_context tx_context = {};
public: public:
host(evmc_context* context) noexcept : context{context} {} HostContext(evmc_context* context) noexcept : context{context} {} // NOLINT
bool account_exists(const evmc_address& address) noexcept bool account_exists(const evmc_address& address) noexcept
{ {

View File

@ -69,7 +69,7 @@ TEST(cpp, host)
// Use example host to execute all methods from the C++ host wrapper. // Use example host to execute all methods from the C++ host wrapper.
auto* host_context = example_host_create_context(); auto* host_context = example_host_create_context();
auto host = evmc::host{host_context}; auto host = evmc::HostContext{host_context};
auto a = evmc_address{{1}}; auto a = evmc_address{{1}};
auto v = evmc_bytes32{{7, 7, 7}}; auto v = evmc_bytes32{{7, 7, 7}};