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

Unable to import "undefined": Not Found #27

Open
maroodb opened this issue Jun 1, 2018 · 5 comments
Open

Unable to import "undefined": Not Found #27

maroodb opened this issue Jun 1, 2018 · 5 comments

Comments

@maroodb
Copy link

maroodb commented Jun 1, 2018

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];

       }
}
@SelimTavukcuoglu
Copy link

Hello, all. Same for me...

robsecord pushed a commit to robsecord/solidity-stringutils that referenced this issue Jun 6, 2018
… added symlink to maintain existing references (as per docs)
@maroodb
Copy link
Author

maroodb commented Jun 6, 2018

the solution is to replace import "github.com/Arachnid/solidity-stringutils/strings.sol";
by "import "github.com/Arachnid/solidity-stringutils/src/strings.sol";

Arachnid added a commit that referenced this issue Jun 6, 2018
Fix for Issue #27 - Unable to import "undefined": Not Found
@SelimTavukcuoglu
Copy link

Still not working...

@xeroblood-io
Copy link
Contributor

Working in Remix for me now
screen shot 2018-06-06 at 11 30 31 am

@maikelmclauflin
Copy link

if running this locally does this have to use externals?
and is this published on npm?

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

4 participants