Skip to content

Commit d5412ff

Browse files
committed
fix hera_get_buildinfo symbol error
1 parent bc8835b commit d5412ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hera.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ struct hera_instance : evmc_instance {
9292
bool metering = false;
9393
map<evmc_address, vector<uint8_t>> contract_preload_list;
9494

95-
hera_instance() noexcept : evmc_instance({EVMC_ABI_VERSION, "hera", hera_get_buildinfo()->project_version, nullptr, nullptr, nullptr, nullptr, nullptr}) {}
95+
// hera_instance() noexcept : evmc_instance({EVMC_ABI_VERSION, "hera", hera_get_buildinfo()->project_version, nullptr, nullptr, nullptr, nullptr, nullptr}) {}
96+
// 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
97+
hera_instance() noexcept : evmc_instance({EVMC_ABI_VERSION, "hera", nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}) {}
98+
9699
};
97100

98101
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 } };

0 commit comments

Comments
 (0)