From 2be9c741a0c426596029d207abe6fc2b2c5a4c63 Mon Sep 17 00:00:00 2001 From: cdetrio Date: Tue, 26 Mar 2019 15:25:59 -0400 Subject: [PATCH] fix hera_get_buildinfo symbol error --- src/hera.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hera.cpp b/src/hera.cpp index 1ef3e728b..8ed9c083f 100644 --- a/src/hera.cpp +++ b/src/hera.cpp @@ -94,7 +94,10 @@ struct hera_instance : evmc_instance { bool metering = false; map contract_preload_list; - hera_instance() noexcept : evmc_instance({EVMC_ABI_VERSION, "hera", hera_get_buildinfo()->project_version, nullptr, nullptr, nullptr, nullptr, nullptr}) {} + // hera_instance() noexcept : evmc_instance({EVMC_ABI_VERSION, "hera", hera_get_buildinfo()->project_version, nullptr, nullptr, nullptr, nullptr, nullptr}) {} + // fix error with geth+evmc: /tmp/go-build940146972/b001/runtime.test: symbol lookup error: /tmp/go-build940146972/b001/runtime.test: undefined symbol: hera_get_buildinfo + hera_instance() noexcept : evmc_instance({EVMC_ABI_VERSION, "hera", nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}) {} + }; const evmc_address sentinelAddress = { .bytes = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xa } };