Skip to content

Unable to import "undefined": Not Found #27

@maroodb

Description

@maroodb

when I compile the smart contract it throws this error : Unable to import "undefined": Not Found*

this is my smart contract:

pragma solidity ^0.4.0;
import "github.com/Arachnid/solidity-stringutils/strings.sol";
contract Ballot {

       using strings for *;
       
       
       function splitString (string result) public constant returns (string){
           var s = "www.google.com".toSlice();
           var delim = ".".toSlice();
           var parts = new string[](s.count(delim) + 1);
           for(uint i = 0; i < parts.length; i++) {
              parts[i] = s.split(delim).toString();
            }
            
            return parts[0];

       }
}

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