Git Product home page Git Product logo

Comments (4)

alan890104 avatar alan890104 commented on June 16, 2024 1

Hey @WaterSo0910, could you please provide your OS, solidity version and the solidity files for futher investigating? I have tried the below example with version 0.8.17 but there is no error :

command line

solcix compile  wallet.sol 

and wallet.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

contract EtherWallet {
    address payable public owner;

    constructor() {
        owner = payable(msg.sender);
    }

    receive() external payable {}

    function withdraw(uint _amount) external {
        require(msg.sender == owner, "caller is not owner");
        payable(msg.sender).transfer(_amount);
    }

    function getBalance() external view returns (uint) {
        return address(this).balance;
    }
}

from solcix.

WaterSo0910 avatar WaterSo0910 commented on June 16, 2024 1

I use poetry with python 3.10 on windows 11 and get the same error even using your example.

from solcix.

WaterSo0910 avatar WaterSo0910 commented on June 16, 2024 1

BRAVO LOL🚀

from solcix.

alan890104 avatar alan890104 commented on June 16, 2024

Hey @WaterSo0910 ,
I have investigated the problem and I am pleased to inform you that we have implemented a fix. The issue was caused by the trailing \r in windows OS, and we have addressed it by adding strip() for the option.

from solcix.

Related Issues (1)

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.