Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Submodules.sol::getSubmodules gas optimization for unnecessary function #5

Open
AlienCode4 opened this issue Dec 26, 2023 · 0 comments

Comments

@AlienCode4
Copy link

Summary

unnecessary function get a public Array that can be called directly

Vulnerability Detail

unnecessary function get a public Array that can be called directly

Impact

gas can be saved by not having more function

Code Snippet

function getSubmodules() external view returns (SubKeycode[] memory) {

Tool used

Manual Review

Recommendation

Remove the function getSubmodules

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant