test: Use evmc::VM directly

The evmc::VM works as a RAII wrapper similarly to unique_ptr, so there is no point in using additional unique_ptr.
This commit is contained in:
Paweł Bylica
2019-11-27 18:53:02 +01:00
parent 87943bf444
commit 38a20190f4
3 changed files with 12 additions and 15 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ DEFINE_PROTO_FUZZER(Contract const& _input)
// We target the default EVM which is the latest
langutil::EVMVersion version = {};
EVMHost hostContext(version, &evmone);
EVMHost hostContext(version, evmone);
// Deploy contract and signal failure if deploy failed
evmc::result createResult = deployContract(hostContext, byteCode);