Acton
Linting rules

E014: acton-import-in-contract

Forbids importing files from `.acton` in contract dependency trees.

Metadata

  • Code: E014
  • Rule: acton-import-in-contract
  • Status: Stable since v0.0.1
  • Quick fix: not available

What it does

Forbids importing files from .acton in contract dependency trees.

Why is this bad?

Contract sources should not depend on Acton internals from .acton. Such imports are environment-dependent and make contracts less portable.

Example

import "@acton/tlb/maybe";
E014: contracts cannot import files from Acton standard library

Use instead:

import "@stdlib/gas-payments";
Source code

Last updated on

On this page