use-of-deprecated-functions

Detect deprecated Solidity functions and keywords in smart contracts.

1|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Apegurus/solidity-argus --skill use-of-deprecated-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-of-deprecated-functions
Source: https://github.com/Apegurus/solidity-argus/tree/main/skills/vulnerability-patterns/use-of-deprecated-functions
Command: npx skills add https://github.com/Apegurus/solidity-argus --skill use-of-deprecated-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and helps remediate the use of deprecated or removed Solidity functions, keywords, and language features, preventing potential compilation errors and unexpected behavior in newer Solidity versions.

Core Features & Use Cases

  • Deprecated Function Detection: Flags the use of outdated Solidity constructs like suicide, sha3, block.blockhash, msg.gas, etc.
  • Modern Replacement Guidance: Provides the correct, modern alternatives for each deprecated feature.
  • Use Case: A developer is working with an older Solidity contract and wants to upgrade it to a newer compiler version. This Skill can pinpoint all deprecated elements, making the upgrade process smoother and safer.

Quick Start

Use the use-of-deprecated-functions skill to audit the provided Solidity contract for any deprecated functions.

Frequently Asked Questions about use-of-deprecated-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find deprecated Solidity functions in my smart contract?

You can scan your smart contract source code against a known list of deprecated Solidity constructs to identify outdated functions, keywords, and language features that may cause compilation errors.

What are common deprecated Solidity functions and their modern replacements?

Deprecated Solidity features include suicide, sha3, block.blockhash, and msg.gas. Scanning your code identifies these outdated constructs and provides modern replacements to ensure compatibility and security.

Why does my Solidity contract throw compiler warnings for outdated functions?

Compiler warnings occur because the smart contract source code contains deprecated functions, keywords, or language features that are no longer supported in newer Solidity compiler versions.

How do I upgrade an old Solidity contract to a newer compiler version?

To upgrade an old Solidity contract, you scan the source code to pinpoint all deprecated functions and language features, then apply the provided modern replacements to ensure a smooth and safe transition.

Does checking for deprecated Solidity functions help prevent smart contract vulnerabilities?

Yes, checking for deprecated Solidity functions helps prevent vulnerabilities and unexpected behavior by identifying outdated constructs and guiding you toward modern, secure replacements during code modernization.