Closed cmditch closed 7 years ago
See here - https://gist.github.com/ethers/2d8dfaaf7f7a2a9e4eaa
We could generate a MyContract.callMyFunc & MyContract.myFunc for each non-constant function, e.g.,
MyContract.callMyFunc
MyContract.myFunc
callMyFunc: web3.eth.contract(abi).at(address).myFunc.sendTransaction.apply(args)
web3.eth.contract(abi).at(address).myFunc.sendTransaction.apply(args)
myFunc: web3.eth.contract(abi).at(address).myFunc.call.apply(args)
web3.eth.contract(abi).at(address).myFunc.call.apply(args)
See here - https://gist.github.com/ethers/2d8dfaaf7f7a2a9e4eaa
We could generate a
MyContract.callMyFunc
&MyContract.myFunc
for each non-constant function, e.g.,callMyFunc:
web3.eth.contract(abi).at(address).myFunc.sendTransaction.apply(args)
myFunc:
web3.eth.contract(abi).at(address).myFunc.call.apply(args)