克隆当前的合约实例对象。
调用:
myContract.clone()
Clones the current contract instance.
参数:
无
返回值:
Object
: 克隆得到的新合约实例
示例代码:
var contract1 = new eth.Contract(abi, address, {gasPrice: '12345678', from: fromAddress});
var contract2 = contract1.clone();
contract2.options.address = address2;
(contract1.options.address !== contract2.options.address);
> true