Skip to content

Use named imports across all Compact contracts #406

@0xisk

Description

@0xisk

Currently, modules are imported without named imports

import "../security/Initializable" prefix Initializable_;
// usage:
Initializable_initialize();
Initializable_assertInitialized();

We should explore using named imports instead, which would be more explicit and idiomatic:

import { initialize, assertInitialized } from "../security/Initializable" prefix Initializable_;
// usage:
Initializable_initialize();
Initializable_assertInitialized();

Originally posted by @emnul in #190

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginnerLess complex, good first issues to work on for users contributing to OpenZeppelin.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions