examples: move account into evmc namespace

This commit is contained in:
Alex Beregszaszi 2019-08-08 18:45:31 +02:00 committed by Paweł Bylica
parent 2536d50cff
commit fb67e57986
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,8 @@
using namespace evmc::literals;
namespace evmc
{
struct account
{
evmc::uint256be balance = {};
@ -34,9 +36,11 @@ struct account
}
};
} // namespace evmc
class ExampleHost : public evmc::Host
{
std::map<evmc::address, account> accounts;
std::map<evmc::address, evmc::account> accounts;
evmc_tx_context tx_context{};
public: