question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when deploying contracts

See original GitHub issue

While working fine on macOS, I keep getting the following error on an Ubuntu server when I execute truffle deploy --network=ganache:

TypeError: Cannot read property 'returnValues' of undefined
    at cloneDaoDeployer (/home/keno/molochv3-contracts/utils/DaoFactory.js:592:36)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at deployDao (/home/keno/molochv3-contracts/utils/DaoFactory.js:400:31)
    at module.exports (/home/keno/molochv3-contracts/migrations/2_deploy_contracts.js:39:11)
    at Migration._deploy (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:79:1)
    at Migration._load (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:61:1)
    at Migration.run (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:212:1)
    at Object.runMigrations (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:150:1)
    at Object.runFrom (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:110:1)
    at Object.run (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:87:1)
    at runMigrations (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:263:1)
    at Object.run (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:228:1)
    at Command.run (/home/keno/.nvm/versions/node/v13.14.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:136:1)

Node version on both Linux and macOS: 13.14.0 Truffle version on both Linux and macOS: 5.2.5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adridadoucommented, Mar 26, 2021

Is it ok if I close it for now? looks like there is a way and right now we test with v12 and we’ll try to make it work with later node versions but it’s just not a priority right now to manage different node versions.

Or do you want to take a look ?

1reaction
adridadoucommented, Mar 26, 2021

trying to reproduce it. could you delete your build folder and try again? could you try with node v12 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error while deploying VRFCooridnatorV2Mock
In your VRFCoordinatorV2Mock.sol contract you have: pragma solidity >0.8.0; try pragma solidity ^0.8.0;. Share. Share a link to this answer.
Read more >
Error at deploying contracts · Issue #3515 - GitHub
Hello, The reason this failed is because in the deploy-config, numDeployConfirmations is not set, default=0. This means that after the deploy, ...
Read more >
Solidity deployment error – ContractNotFound: No contract ...
Solidity deployment error – ContractNotFound: No contract deployed at address. Delete all the files and folders in Deployment folder as closing ...
Read more >
Truffle Contract Not Deployed Error – Solution
Getting the error message “ContractName has not been deployed to detected network (network/artifact mismatch)” ? Read the solution below! Want to learn more?...
Read more >
Error in deploying contract using web3.js - Stack Overflow
I am trying to deploy my contract in ethereum using web3.js But i am getting error. I am using node.js, solc compiler to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found