Provide path to libevmone.

This commit is contained in:
chriseth
2019-08-08 17:35:46 +02:00
parent 13e2a6fe52
commit f692cec11d
6 changed files with 44 additions and 58 deletions
+5
View File
@@ -38,6 +38,11 @@ using Address = h160;
class EVMHost: public evmc::Host
{
public:
/// Tries to dynamically load libevmone. @returns nullptr on failure.
/// The path has to be provided for the first successful run and will be ignored
/// afterwards.
static evmc::vm* getVM(std::string const& _path = {});
explicit EVMHost(langutil::EVMVersion _evmVersion, evmc::vm* _vm = getVM());
struct Account