Giter Club home page Giter Club logo

Comments (4)

codekoriko avatar codekoriko commented on June 1, 2024 1

no worries @zerosnacks

indeed I do have ETHERSCAN_API_KEY in my .env

If so, a temporary workaround is passing --offline
👌🏻

from foundry.

zerosnacks avatar zerosnacks commented on June 1, 2024

Possibly related: #6792 / #6791

Are these fork / integration tests? Could you perhaps share the Etherscan related settings of forge config? And the logs if you run with RUST_LOG=etherscanidentifier

from foundry.

codekoriko avatar codekoriko commented on June 1, 2024

I'm running unittests locally

here is my foundry.toml

[profile.default]
src = 'src'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test'
cache_path  = 'cache_forge'
remappings = [
    "lib/an-essential-dependency/lib/openzeppelin-contracts/=node_modules/@openzeppelin/",
]

Except for the remapping is the default file created by Hardhat during init cmd: npx hardhat init-foundry

I use the remapping for a dependency that has pinned down solc version which itself relies on OpenZeppelin. But install cmd
forge install cool-creator/an-essential-dependency
init it sub-module OpenZeppelin to the latest version which is incompatible with parent solc version

ps: the delay appends on every test so if I run the whole suit with a forge test that goes from ~8s to ~240s

from foundry.

zerosnacks avatar zerosnacks commented on June 1, 2024

Apologies for the delay @codekoriko

Do happen to have an ETHERSCAN_API_KEY defined in a local .env?

See: #7555

If so, a temporary workaround is passing --offline

from foundry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.