Open zlsecure3 opened 1 year ago
submission_id:1469204347
review_type:GRADING
result: TBD-yes,no
rating: TBD-123
comment: TBD-Rejected,Accepted by Secure3.
severity: TBD-Critical,Medium,Low,Informational
category:
description:
submission_id:1469204347
review_type:CLIENT_FEEDBACK
result: TBD-yes,no
severity: TBD-Critical,Medium,Low,Informational
comment:
submission_id:1469204347
review_type:CLIENT_FEEDBACK_DECISION
result: TBD-yes,no,yes-honored,no-honored
severity: TBD-Critical,Medium,Low,Informational
comment:
subject
Redundant initialize_token_store operation
description
In the StarNameService module, users can register domain names through the create_name_script function. It will first create a Token resource for the user through the initialize_token_store function, and then set its direct_transfer to true through the opt_in_direct_transfer function. But in fact, the initialize_token_store function is also called in the opt_in_direct_transfer function to create resources for the user. So the initialize_token_store operation in the create_name_script function is redundant.
Below is the implementation of
Token::opt_in_direct_transfer
function.recommendation
It is recommended to remove the initialize_token_store operation in the create_name_script function.
locations
severity
Informational
damage
exploitability
category
Gas Optimization
system_generated: auditor:Kong7ych3 submission_id:1469204347