0

I tried to deploy a contract to rinkeby then on ropsten, but getting an error:

Network ropsten-fork
Minting initial supply of 5000000000 ...
Error: Error: Error: invalid address (arg="_to", coderType="address", value=undefined)
    at Object.run (/Users/debchakramajumder/.nvm/versions/node/v10.16.3/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:92:1)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.0.34 (core: 5.0.34)
Node v10.16.3

But I am successfully able to deploy the same contract on localhost and mainnet.

Any ideas about the above error. Please help!

P.S. I am using truffle to do the above tasks.

  • Please provide more information about your deployment scripts and what the contracts are doing. It seems something is returning an 'undefined' value when an address is expected. – Ismael Sep 9 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.