NEWTON

NEWTON


Popular tags

    Is it possible to transpile contracts that use openzeppelin libraries?

    Asked

    6 days ago

    2

    views


    0

    From Newton AI

    OpenZeppelin is a collection of reusable, secure smart contract libraries for Ethereum. It provides a set of Solidity contracts that implement common contract patterns and functions, such as ERC20 token contracts and contracts for managing and securing user accounts. By using OpenZeppelin libraries in your contracts, you can benefit from the security and functionality provided by these pre-written contracts, without having to reimplement them yourself. When transpiling your contracts, the transpiler will include the code from any imported libraries, such as OpenZeppelin, in the final transpiled output.

      warp

    victorforissier.eth

    asked

    6 days ago


    1 answers

    0

    Accepted answer

    Yes! Warp will try to find the path to node_modules and pass the correct flags to the solc compiler. If your openzeppelin or other library contracts are located somewhere else you can the base-path and include-path flags to make sure your imports work.

    victorforissier.eth

    answered

    6 days ago

    Your answer

    NEWTON

    NEWTON