ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
887 stars 131 forks source link

Error compiling openzeppelin dependencies #662

Closed r4VP4 closed 2 years ago

r4VP4 commented 2 years ago

Environment information

$ ape --version
0.1.5

$ ape plugins list
Installed Plugins:
  alchemy     0.1.0
  solidity    0.1.1
  hardhat     0.1.4
$ cat ape-config.yaml

name: ape_test1

dependencies:
  - name: OpenZeppelin
    github: OpenZeppelin/openzeppelin-contracts
    version: 4.5.0

solidity:
  import_remapping:
    - "@openzeppelin=OpenZeppelin/4.5.0"

hardhat:
  fork:
    ethereum:
      mainnet:
        upstream_provider: alchemy

What went wrong?

compiling openzeppelin dependencies throws an error (my contract-folder is empty, but i tried it with a dummy contract than i get an error, too) changing the openzeppelin version to 4.4.2 throws the same error

fubuloubu commented 2 years ago

I've been getting this too lately. No idea why though, v4.5.0 is several months old, it must be a regression in Ape v0.1.5

Can you try it downgraded to Ape v0.1.4?

fubuloubu commented 2 years ago

@r4VP4 should be fixed as of v0.1.6

r4VP4 commented 2 years ago

upgraded to v0.1.6: everything's fine! Appreciate your fast fixing! Thank you very much!