From 9de9f6aa7a6923762fa38e201e77ee7eca7cb013 Mon Sep 17 00:00:00 2001 From: Dmytro Sydorchenko Date: Wed, 6 Sep 2023 14:10:40 -0400 Subject: [PATCH] added set_finalizers to host functions list --- .../eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp | 3 ++- libraries/chain/webassembly/runtimes/eos-vm.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp b/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp index ea92a9cf86..6d8b9b5141 100644 --- a/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp +++ b/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp @@ -277,7 +277,8 @@ inline constexpr auto get_intrinsic_table() { "env.bls_pairing", "env.bls_g1_map", "env.bls_g2_map", - "env.bls_fp_mod" + "env.bls_fp_mod", + "env.set_finalizers" ); } inline constexpr std::size_t find_intrinsic_index(std::string_view hf) { diff --git a/libraries/chain/webassembly/runtimes/eos-vm.cpp b/libraries/chain/webassembly/runtimes/eos-vm.cpp index e23f91b90e..d0eaea4b32 100644 --- a/libraries/chain/webassembly/runtimes/eos-vm.cpp +++ b/libraries/chain/webassembly/runtimes/eos-vm.cpp @@ -357,6 +357,7 @@ REGISTER_LEGACY_HOST_FUNCTION(get_blockchain_parameters_packed, privileged_check REGISTER_LEGACY_HOST_FUNCTION(set_blockchain_parameters_packed, privileged_check); REGISTER_HOST_FUNCTION(is_privileged, privileged_check); REGISTER_HOST_FUNCTION(set_privileged, privileged_check); +REGISTER_HOST_FUNCTION(set_finalizers, privileged_check); // softfloat api REGISTER_INJECTED_HOST_FUNCTION(_eosio_f32_add);