我还是不明白。在如何实例化web3的教程中,我看到了两种方法。
一个是..。
eth = new Eth(web3.currentProvider)
token = eth.contract(abi).at(contract_address);另一个是..。
web3 = new Web3(web3.currentProvider);
token = new web3.eth.Contract(abi, contractAddress);他们有什么不同?我也找不到关于https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html的信息和小的"c“作为合同。
发布于 2019-05-13 07:27:29
我想我知道为什么。较小的"c“适用于1.0以下的web3版本。小写字母"c“,没有”新“。而大型"C“则适用于1.0++版本。
天啊,为什么他们让编码者觉得很难。
https://ethereum.stackexchange.com/questions/70639
复制相似问题