vmtester: Accept standard EVMC config options

This commit is contained in:
Paweł Bylica 2019-07-23 14:01:23 +02:00
parent 8c3c6cc9bc
commit 9dc9bb081d
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,9 @@
auto a = 0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359_address;
auto b = 0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3_bytes32;
```
- Added: [[#366](https://github.com/ethereum/evmc/pull/366)]
The `evmc-vmtester` tool received support for EVMC module configuration.
E.g. `evmc-vmtester ./my_vm,mode=interpreter`.
- Changed: [[#293](https://github.com/ethereum/evmc/pull/293)]
In C++ API `evmc::result::raw()` renamed to `evmc::result::release_raw()`.
- Changed: [[#311](https://github.com/ethereum/evmc/pull/311)]

View File

@ -121,7 +121,7 @@ int main(int argc, char* argv[])
std::cout << "Testing " << evmc_module << "\n";
evmc_loader_error_code ec;
evmc_vm_test::vm = evmc_load_and_create(evmc_module.c_str(), &ec);
evmc_vm_test::vm = evmc_load_and_configure(evmc_module.c_str(), &ec);
// The safe C++ wrapper is used to make sure VM is destroyed properly.
static const evmc::vm loaded_vm{evmc_vm_test::vm};