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