提交 ccb8c5fa 编写于 作者: K Kevin Heifner

Change checktime_api and system_api to allow context free use

上级 ef47e52a
......@@ -468,9 +468,10 @@ class privileged_api : public context_aware_api {
/// TODO: add inline/deferred with support for arbitrary permissions rather than code/current auth
};
class checktime_api : public context_free_api {
class checktime_api : public context_aware_api {
public:
using context_free_api::context_free_api;
checktime_api( wasm_interface& wasm )
:context_aware_api(wasm,true){}
void checktime(uint32_t instruction_count) {
context.checktime(instruction_count);
......@@ -574,9 +575,10 @@ class string_api : public context_aware_api {
}
};
class system_api : public context_free_api {
class system_api : public context_aware_api {
public:
using context_free_api::context_free_api;
system_api( wasm_interface& wasm )
:context_aware_api(wasm,true){}
void abort() {
edump(("abort() called"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册