mirror of https://github.com/status-im/evmc.git
cpp: Rename host to HostContext
This commit is contained in:
parent
5b59cf0e95
commit
1a3ca7618d
|
@ -80,13 +80,13 @@ private:
|
|||
|
||||
|
||||
/// Wrapper around EVMC host context / host interface.
|
||||
class host
|
||||
class HostContext
|
||||
{
|
||||
evmc_context* context = nullptr;
|
||||
evmc_tx_context tx_context = {};
|
||||
|
||||
public:
|
||||
host(evmc_context* context) noexcept : context{context} {}
|
||||
HostContext(evmc_context* context) noexcept : context{context} {} // NOLINT
|
||||
|
||||
bool account_exists(const evmc_address& address) noexcept
|
||||
{
|
||||
|
|
|
@ -69,7 +69,7 @@ TEST(cpp, host)
|
|||
// Use example host to execute all methods from the C++ host wrapper.
|
||||
|
||||
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 v = evmc_bytes32{{7, 7, 7}};
|
||||
|
|
Loading…
Reference in New Issue