Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the deploy script fails on type error #7

Open
aniche opened this issue Jun 23, 2022 · 3 comments
Open

the deploy script fails on type error #7

aniche opened this issue Jun 23, 2022 · 3 comments

Comments

@aniche
Copy link

aniche commented Jun 23, 2022

Followed instruction, got bug

brownie run scripts/governance_standard/deploy_and_run.py
Brownie v1.19.0 - Python development framework for Ethereum

New compatible solc version available: 0.8.14
Compiling contracts...
  Solc version: 0.8.14
  Optimizer: Enabled  Runs: 200
  EVM Version: Istanbul
CompilerError: solc returned the following errors:

TypeError: Data locations of parameters have to be the same when overriding non-external functions, but they differ.
  --> /Users/tinytaplife/.brownie/packages/OpenZeppelin/[email protected]/contracts/governance/Governor.sol:92:5:
   |
92 |     function hashProposal(
   |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Overridden function is here:
  --> /Users/tinytaplife/.brownie/packages/OpenZeppelin/[email protected]/contracts/governance/IGovernor.sol:91:5:
   |
91 |     function hashProposal(
   |     ^ (Relevant source part starts here and spans across multiple lines).
@cromewar
Copy link

cromewar commented Jul 4, 2022

same here, trying to find the solution

@fxop0218
Copy link

I had the same problem and I used the version OpenZeppelin/[email protected] and it worked for me, try it.

@cromewar
Copy link

Thanks @fxop0218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants