Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.49 KB

mark-callable-contracts.md

File metadata and controls

53 lines (39 loc) · 1.49 KB
warning layout title
This is a dynamically generated file. Do not edit manually.
default
mark-callable-contracts | Solhint

mark-callable-contracts

Deprecated Badge Category Badge Default Severity Badge warn

This rule is deprecated

Description

Explicitly mark all external contracts as trusted or untrusted.

Options

This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Default to warn.

Example Config

{
  "rules": {
    "mark-callable-contracts": "warn"
  }
}

Examples

👍 Examples of correct code for this rule

External contract name with "Trusted" prefix

TrustedBank.withdraw(100);

👎 Examples of incorrect code for this rule

External contract name without "Trusted" prefix

Bank.withdraw(100);

Version

This rule was introduced in Solhint 2.0.0-alpha.0

Resources