incorrect-constructor
CommunitySecure legacy Solidity constructors.
AuthorApegurus
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses a critical vulnerability in older Solidity versions (<0.4.22) where constructors were named functions, leading to potential security risks if misspelled or not updated after contract renaming.
Core Features & Use Cases
- Legacy Solidity Auditing: Identifies incorrectly named constructor functions in contracts using Solidity versions prior to 0.4.22.
- Vulnerability Detection: Flags functions that appear to perform initialization but do not match the contract name, preventing them from being regular public functions.
- Use Case: Auditing a DeFi protocol's older smart contracts to ensure that initialization logic is correctly implemented and protected against accidental re-entrancy or unauthorized calls due to constructor naming errors.
Quick Start
Analyze the provided Solidity code for any instances of incorrectly named constructor functions.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: incorrect-constructor Download link: https://github.com/Apegurus/solidity-argus/archive/main.zip#incorrect-constructor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.