Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix(solc): use nodesiter when printing tree #878

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Feb 7, 2022

Motivation

prevent possible SO when construction import tree

Solution

use existing NodesIter to determine error msg like

   0: Discovered incompatible solidity versions in following
      : src/MyContract.sol (^0.8.0) imports:
          lib/yearn-vaults/contracts/BaseStrategy.sol (>=0.6.0 <0.7.0) 
          lib/yearn-vaults/contracts/BaseStrategy.sol (>=0.6.0 <0.7.0)

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@@ -661,6 +654,18 @@ struct SolData {
version_req: Option<VersionReq>,
}

impl SolData {
fn fmt_version<W: std::fmt::Write>(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea why this throws warning?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guess unused in wasm

@gakonst gakonst merged commit a0568fe into gakonst:master Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants