Unhandled rejection Error: This contract object doesn't have address set yet, please set an address first
Simple solution
Voting.options.address = "0x6ee9957aef5f4073c6af71441ec7962527c37671"
where Voting is my smart contract instance name
"0x6ee9957aef5f4073c6af71441ec7962527c37671" is deployed smart contact address
my web3.js version "web3": "^1.0.0-beta.31",