Update the account::set_map_item
procedure
#1137
Labels
good first issue
Good for newcomers
kernels
Related to transaction, batch, or block kernels
refactoring
Code clean-ups, improvements, and refactoring
Milestone
What should be done?
Currently
set_map_item
procedure from the kernel lib requires the input stack to be[index, KEY, NEW_VALUE, OLD_ROOT]
, where theindex
is the index of the storage slot where root of the tree is stored. This root is exactly the same asOLD_ROOT
, so it could be removed from the inputs data and obtained inside the procedure.How should it be done?
OLD_ROOT
word should be removed from the inputs of the kernelaccount::set_map_item
procedure, this root should be obtained inside this procedure using the provided storage slot index.When is this task done?
This task is done when the old root is removed from the inputs of the
set_map_item
procedure.Additional context
No response
The text was updated successfully, but these errors were encountered: