Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Jan 29, 2024
1 parent 5255ad7 commit e0ad2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/src/vm_hooks/vh_handler/vh_blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use num_traits::Zero;

// The Go VM doesn't do it, but if we change that, we can enable it easily here too via this constant.
const ESDT_TOKEN_DATA_FUNC_RESETS_VALUES: bool = false;
const VM_BUILTIN_FUNCTIONS: [&str; 16] = [
const VM_BUILTIN_FUNCTION_NAMES: [&str; 16] = [
ESDT_LOCAL_MINT_FUNC_NAME,
ESDT_LOCAL_BURN_FUNC_NAME,
ESDT_MULTI_TRANSFER_FUNC_NAME,
Expand Down Expand Up @@ -171,7 +171,7 @@ pub trait VMHooksBlockchain: VMHooksHandlerSource {
}

fn managed_is_builtin_function(&self, function_name_handle: i32) -> bool {
VM_BUILTIN_FUNCTIONS.contains(
VM_BUILTIN_FUNCTION_NAMES.contains(
&self
.m_types_lock()
.mb_to_function_name(function_name_handle)
Expand Down

0 comments on commit e0ad2fe

Please sign in to comment.