Truffle: Unable to deploy contracts using truffle v5.0.16 with contract solidity version 0.5.0

Created on 13 May 2019  路  7Comments  路  Source: trufflesuite/truffle

  • [ ] I've asked for help in the Truffle Gitter before filing this issue.

Issue

What the issue is, in broad strokes.

I am able to compile the contracts but unable to deploy them on my current Quorum Setup.

CheckingContract.txt
Dispatcher.txt
Dispatcher2.txt
DispatcherStorage.txt
DispatcherStorgae2.txt
Lib1.txt
Lib2.txt
Migrations.txt
Lib1Storage.txt

Steps to Reproduce

Please provide the shortest amount of steps to reproduce your issue.
Please try to deploy it on Quorum. It compiles it without error but never deploys it and gives contract address.

Expected Behavior

It will only compile these contract but will not deploy them at truffle migrate command
OnlyCompile-No-Deployment

What you expected to happen.
Giving contract addresses after deployment

Actual Results

What actually happened. Please give examples and support it with screenshots, copied output or error messages.

Environment

  • Operating System: 18.04
  • Ethereum client:
  • Truffle version (truffle version):Truffle v5.0.16
  • node version (node --version):v8.10.0
  • npm version (npm --version): 3.5.2

Most helpful comment

This may be a bug I just ran into:

truffle deploy is supposed to be an alias for truffle migrate. At least in 5.0.17, it is not. I got this error message.

truffle deploy

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.

TypeError: this.determineDryRunSettings is not a function
    at Contracts.compile.then (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/commands/migrate.js:184:10)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Truffle v5.0.17 (core: 5.0.16)
Node v8.10.0

Solution?

run

truffle migrate

All 7 comments

truffle.js that is being used for this deployment.

const config = require("./config.json");
var ipa = config.node1;
module.exports = {
networks: {
development: {
host: ipa.host,
port: ipa.port,
network_id: "*", // Match any network id
gasPrice: 0,
gas: 1000000
}
},
compilers: {
solc: {
version: "0.5.1" // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
}
}
};

Error_Screenshot
Adding new Error Screenshot.

Hey @carnelius8888! It looks like you haven't configured truffle.js to use a Quorum network type.

From the docs:

To use Quorum, you must modify your network in truffle-config.js to include a parameter type set to "quorum". See the example below.

module.exports = { networks: { development: { host: "127.0.0.1", port: 22000, // replace with quorum node port you wish to connect to network_id: "*", type: "quorum" } } };
Hope this helps! 馃

This may be a bug I just ran into:

truffle deploy is supposed to be an alias for truffle migrate. At least in 5.0.17, it is not. I got this error message.

truffle deploy

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.

TypeError: this.determineDryRunSettings is not a function
    at Contracts.compile.then (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/commands/migrate.js:184:10)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Truffle v5.0.17 (core: 5.0.16)
Node v8.10.0

Solution?

run

truffle migrate

Thanks @yaoshiang. I was struggling with the same error as I was running truffle deploy. truffle migrate works.

Yes, this bug is fixed in PR #2018

Closing this presuming it is no longer a problem. If I'm wrong, feel free to open a new one!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xpepermint picture xpepermint  路  31Comments

inzmamulhassan picture inzmamulhassan  路  29Comments

dcnl1980 picture dcnl1980  路  63Comments

jleeh picture jleeh  路  29Comments

filips123 picture filips123  路  40Comments