Does anybody know how to solve this? I've try to compile and deploy my contract to get the address, why obtained this error
Error:
1_initial_migration.js
======================
Deploying 'towater'
-------------------------
Error: Error: Error: *** Deployment Failed ***
"towater" -- Invalid number of parameters for "undefined". Got 0 expected 2!.
at Object.run (/usr/local/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.24 (core: 5.0.24)
Node v10.16.0
1_initial_migrations.js
file:
var towater = artifacts.require("towater");
module.exports = function(deployer) {
deployer.deploy(towater);
};
towater
.