Giter Club home page Giter Club logo

Comments (7)

PatrickAlphaC avatar PatrickAlphaC commented on July 3, 2024 1

1ac70bc

Fixed here. Could you please re-clone and try again?

from erc20-brownie.

PatrickAlphaC avatar PatrickAlphaC commented on July 3, 2024

Can you please copy paste the output? I can't read that text.

from erc20-brownie.

DiazRock avatar DiazRock commented on July 3, 2024

Can you please copy paste the output? I can't read that text.

Check now the issue.

from erc20-brownie.

DiazRock avatar DiazRock commented on July 3, 2024

I think that I have problem with the color of the console. Because I saw new text when I copy...

from erc20-brownie.

DiazRock avatar DiazRock commented on July 3, 2024

I changed the background color from my terminal and I can see the error. Perhaps it is a good option to add compiler version to the yml file.

Now I see that different files needs differents solidity versions

brownie run scripts/1_deploy_token.sol
Brownie v1.17.2 - Python development framework for Ethereum

Downloading from https://solc-bin.ethereum.org/linux-amd64/solc-linux-amd64-v0.7.0+commit.9e61f92b
100%|███████████████████████████████████████████████████████████| 9.51M/9.51M [00:40<00:00, 233kiB/s]
solc 0.7.0 successfully installed at: /home/diazrock/.solcx/solc-v0.7.0
Compiling contracts...
  Solc version: 0.7.0
  Optimizer: Enabled  Runs: 200
  EVM Version: Istanbul
CompilerError: solc returned the following errors:

contracts/EasyToken.sol:1:1: ParserError: Source file requires different compiler version (current compiler is 0.7.0+commit.9e61f92b.Linux.g++) - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.6.0;
^---------------------^

contracts/OurToken.sol:3:1: ParserError: Source file requires different compiler version (current compiler is 0.7.0+commit.9e61f92b.Linux.g++) - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.8.0;
^---------------------^

contracts/TokenERC20.sol:1:1: ParserError: Source file requires different compiler version (current compiler is 0.7.0+commit.9e61f92b.Linux.g++) - note that nightly builds are considered to be strictly less than the released version
pragma solidity >=0.4.22 <0.6.0;
^------------------------------^

How can I solve this?

from erc20-brownie.

DiazRock avatar DiazRock commented on July 3, 2024
Running 'scripts/1_deploy_token.py::main'...
Transaction sent: 0xe6eb1aab1762206f042f431f2ff348ed7cfd0374fe69bcb71c51fd68a4db81ec
  Gas price: 0.0 gwei   Gas limit: 6721975   Nonce: 1
  TokenERC20.constructor confirmed   Block: 2   Gas used: 670648 (9.98%)
  TokenERC20 deployed at: 0xCb13309811093d799261b0215ABdCcfE408C3eDb

It works!

from erc20-brownie.

PatrickAlphaC avatar PatrickAlphaC commented on July 3, 2024

Yay :D

from erc20-brownie.

Related Issues (3)

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.