Git Product home page Git Product logo

Comments (9)

h2mch avatar h2mch commented on July 19, 2024 3

thx a lot to @MykolaMarkov. This issue is fixed in the latest version (0.3.0)

from web3j-maven-plugin.

k06a avatar k06a commented on July 19, 2024

This also not works:

import 'src/main/resources/StorageContract.sol`

from web3j-maven-plugin.

k06a avatar k06a commented on July 19, 2024

Even full path is not possible:

import '/Users/k06a/Projects/base-node/src/main/resources/StorageContract.sol';
[ERROR] Failed to execute goal org.web3j:web3j-maven-plugin:0.1.4:generate-sources (default-cli) on project base-node: Could not compile solidity files
[ERROR] <stdin>:3:1: Error: Source "/Users/k06a/Projects/base-node/src/main/resources/StorageContract.sol" not found: File outside of allowed directories.
[ERROR] import '/Users/k06a/Projects/base-node/src/main/resources/StorageContract.sol';
[ERROR] ^-----------------------------------------------------------------------------^
[ERROR] -> [Help 1]

from web3j-maven-plugin.

andrej-zirko avatar andrej-zirko commented on July 19, 2024

Same issue here

from web3j-maven-plugin.

k06a avatar k06a commented on July 19, 2024

@andrej-zirko right now I am writing all smart contracts in the single file, this works. But we need a good fix.

from web3j-maven-plugin.

h2mch avatar h2mch commented on July 19, 2024

there is raised already an issue in the solc library:
ethereum/solidity#2928

from web3j-maven-plugin.

flefevre avatar flefevre commented on July 19, 2024

It is definietively a problem for me also.
I have dispatched my smart contract into several files to have a clear vision, but now it seems i need to fusion them again?

from web3j-maven-plugin.

ogurcan avatar ogurcan commented on July 19, 2024

Same problem for me also...

from web3j-maven-plugin.

Norphy avatar Norphy commented on July 19, 2024

@MykolaMarkov are we able to import from online sources? such as import "github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol" because I get an error file not found.

from web3j-maven-plugin.

Related Issues (20)

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.