Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Unclear error "Failed to compile" #38

Description

@KorbinianK

When using a contract inheriting the ERC20Basic abstract contract, I get the error that it fails to compile.
Compiling just the ERC20Basic contract works as intended. Any ideas?

Otherwise this tool is very useful mostly works great!

pragma solidity ^0.4.21;
/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

Even if empty, this contract fails to compile according to solmd:

pragma solidity ^0.4.23; 

import "./ERC20Basic.sol";

/**
 * @title ERC20Handler
 */
contract ERC20Handler is ERC20Basic{
 // 
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions