mirror of https://github.com/status-im/evmc.git
examples: move account into evmc namespace
This commit is contained in:
parent
2536d50cff
commit
fb67e57986
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
using namespace evmc::literals;
|
using namespace evmc::literals;
|
||||||
|
|
||||||
|
namespace evmc
|
||||||
|
{
|
||||||
struct account
|
struct account
|
||||||
{
|
{
|
||||||
evmc::uint256be balance = {};
|
evmc::uint256be balance = {};
|
||||||
|
@ -34,9 +36,11 @@ struct account
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace evmc
|
||||||
|
|
||||||
class ExampleHost : public evmc::Host
|
class ExampleHost : public evmc::Host
|
||||||
{
|
{
|
||||||
std::map<evmc::address, account> accounts;
|
std::map<evmc::address, evmc::account> accounts;
|
||||||
evmc_tx_context tx_context{};
|
evmc_tx_context tx_context{};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue