我收到这个错误。
truffle(development)> const mycontract = new web3.eth.Contract(abi, contractAddress)
Thrown:
TypeError: web3.eth.Contract is not a constructor
当我mycontract在控制台上设置时会发生这种情况。Web3 版本是`1.0.0
请给我一些建议好吗?
我收到这个错误。
truffle(development)> const mycontract = new web3.eth.Contract(abi, contractAddress)
Thrown:
TypeError: web3.eth.Contract is not a constructor
当我mycontract在控制台上设置时会发生这种情况。Web3 版本是`1.0.0
请给我一些建议好吗?