Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

The KEYCODES should be bytes3 not bytes5 as per Default FrameWork Recommendation

Description

The Default FrameWork docs describe that modules should be named with KEYCODES which are bytes3 i.e three characters to discourage module bloat and reduce potential confusion around dependency names but the KEYCODES are bytes5 instead which are 5 characters long

Impact

There may be module bloat and potential confusion around dependency names

Proof of Concept

MoneyShelf.sol KEYCODE

function KEYCODE() public pure override returns (Keycode) {
return Keycode.wrap("MONEY");
}

WeaponShelf.sol KEYCODE

function KEYCODE() public pure override returns (Keycode) {
return Keycode.wrap("WEAPN");
}

Recommended Mitigation

It is recommended follow Default Framework docs and use bytes3 instead of bytes5 in the KEYCODES i.e changing MONEY to MNY and WEAPN to WPN

Updates

Lead Judging Commences

n0kto Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
codexbugmenot Submitter
over 1 year ago
n0kto Lead Judge
over 1 year ago
n0kto Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.