未验证 提交 db81f16c 编写于 作者: A Anton Perkov 提交者: GitHub

Merge pull request #3920 from EOSIO/wavm-intrinsic-checktime

call checktime from wavm instrinsic wrapper #3255
......@@ -630,6 +630,7 @@ struct intrinsic_function_invoker {
template<MethodSig Method>
static Ret wrapper(running_instance_context& ctx, Params... params) {
class_from_wasm<Cls>::value(*ctx.apply_ctx).checktime();
return (class_from_wasm<Cls>::value(*ctx.apply_ctx).*Method)(params...);
}
......@@ -648,6 +649,7 @@ struct intrinsic_function_invoker<WasmSig, void, MethodSig, Cls, Params...> {
template<MethodSig Method>
static void_type wrapper(running_instance_context& ctx, Params... params) {
class_from_wasm<Cls>::value(*ctx.apply_ctx).checktime();
(class_from_wasm<Cls>::value(*ctx.apply_ctx).*Method)(params...);
return void_type();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册