From 45803411df28dd38d9eec9dab25e10c6a35e307f Mon Sep 17 00:00:00 2001 From: Andrei Marinica Date: Sun, 15 Dec 2024 04:37:44 +0200 Subject: [PATCH] bugfix --- .../base/src/contract_base/wrappers/call_value_wrapper.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/base/src/contract_base/wrappers/call_value_wrapper.rs b/framework/base/src/contract_base/wrappers/call_value_wrapper.rs index 7a1743b2e0..3304bfdcf2 100644 --- a/framework/base/src/contract_base/wrappers/call_value_wrapper.rs +++ b/framework/base/src/contract_base/wrappers/call_value_wrapper.rs @@ -115,8 +115,7 @@ where /// /// Will crash for EGLD + ESDT multi transfers. pub fn all_esdt_transfers(&self) -> ManagedRef<'static, A, ManagedVec>> { - let multi_esdt_handle: A::ManagedBufferHandle = - use_raw_handle(const_handles::CALL_VALUE_MULTI_ESDT); + let multi_esdt_handle: A::ManagedBufferHandle = self.all_esdt_transfers_unchecked(); if !A::static_var_api_impl() .flag_is_set_or_update(StaticVarApiFlags::CALL_VALUE_ESDT_UNCHECKED_INITIALIZED) {