-
Notifications
You must be signed in to change notification settings - Fork 263
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
Error: Could not find zeppelin-solidity/contracts/crowdsale/Crowdsale.sol from any sources #137
Comments
Hi @k06a. import "zeppelin-solidity/contracts/crowdsale/Crowdsale.sol"; Do this in your module.exports = {
copyNodeModules: true
} At the moment we don't automatically copy the modules because it can take a long time and this is only a problem when importing solidity into solidity from npm installed packages. Solidity's import directive doesn't recursively search outside the parent directory the way JS import or require does. |
@cgewecke thanks for instant reply! I'll try in a few minutes. |
@cgewecke having a new issue: https://travis-ci.org/bitclave/crowdsale/builds/289719158
Content of
I was partially copied from
|
See #136. |
@cgewecke what is |
@cgewecke does it mean to add this to
|
My next problem https://travis-ci.org/bitclave/crowdsale/builds/289838038:
|
Added |
Added
|
Right now using following configuration of
Content of
Content of
Content of
I am having problems with gas:
https://travis-ci.org/bitclave/crowdsale/builds/289971276 10M of gas should be enough! |
Hi. Please look at the link to the zeppelin truffle config in #136 and copy
the values in their coverage network. They are the same values recommended
in the README doc as well. I think your babel imports should be made there
too. The solcover config is only for coverage options.
…On Oct 19, 2017 6:20 AM, "Anton Bukov" ***@***.***> wrote:
Right now using following configuration of truffle.js:
require('babel-register');
require('babel-polyfill');
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*",
gas: 10000000
},
coverage: {
host: "localhost",
port: 8545,
network_id: "*",
gas: 10000000
}
}
};
Content of .solcover.js:
require('babel-register');
require('babel-polyfill');
module.exports = {
copyNodeModules: true,
norpc: true
}
Content of .travis.yml:
sudo: required
dist: trusty
language: node_js
node_js:
- '7'
install:
- npm install -g truffle
- npm install -g ethereumjs-testrpc
- npm install
script:
- npm test
before_script:
- scripts/rpc.sh > /dev/null &
- sleep 5
after_script:
- npm run coverage && cat coverage/lcov.info | coveralls
Content of rpc.sh:
#!/usr/bin/env bash
testrpc -l 10000000
I am having problems with gas:
1) Contract: Crowdsale: "before all" hook:
Error: VM Exception while processing transaction: out of gas
https://travis-ci.org/bitclave/crowdsale/builds/289971276
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#137 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG_gumgHmPPnIRx1ZB7rRZbmsFzRDgwoks5st0yigaJpZM4P-Zq4>
.
|
Also just try letting solidity-coverage launch its own testrpc in travis.
Don't run one yourself unless you have to, and follow the recommendations
in the FAQ if you do.
On Oct 19, 2017 6:38 AM, "chris gewecke" <christophergewecke@gmail.com>
wrote:
… Hi. Please look at the link to the zeppelin truffle config in #136 and
copy the values in their coverage network. They are the same values
recommended in the README doc as well. I think your babel imports should be
made there too. The solcover config is only for coverage options.
On Oct 19, 2017 6:20 AM, "Anton Bukov" ***@***.***> wrote:
> Right now using following configuration of truffle.js:
>
> require('babel-register');
> require('babel-polyfill');
>
> module.exports = {
> networks: {
> development: {
> host: "localhost",
> port: 8545,
> network_id: "*",
> gas: 10000000
> },
> coverage: {
> host: "localhost",
> port: 8545,
> network_id: "*",
> gas: 10000000
> }
> }
> };
>
> Content of .solcover.js:
>
> require('babel-register');
> require('babel-polyfill');
>
> module.exports = {
> copyNodeModules: true,
> norpc: true
> }
>
> Content of .travis.yml:
>
> sudo: required
> dist: trusty
> language: node_js
> node_js:
> - '7'
> install:
> - npm install -g truffle
> - npm install -g ethereumjs-testrpc
> - npm install
> script:
> - npm test
> before_script:
> - scripts/rpc.sh > /dev/null &
> - sleep 5
> after_script:
> - npm run coverage && cat coverage/lcov.info | coveralls
>
> Content of rpc.sh:
>
> #!/usr/bin/env bash
> testrpc -l 10000000
>
> I am having problems with gas:
>
> 1) Contract: Crowdsale: "before all" hook:
> Error: VM Exception while processing transaction: out of gas
>
> https://travis-ci.org/bitclave/crowdsale/builds/289971276
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#137 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AG_gumgHmPPnIRx1ZB7rRZbmsFzRDgwoks5st0yigaJpZM4P-Zq4>
> .
>
|
Finally fixed my issues. Do not know how exactly: https://github.com/bitclave/crowdsale |
We are using
zeppelin-solidity
package.https://travis-ci.org/bitclave/crowdsale/builds/289704002
The text was updated successfully, but these errors were encountered: