estimateChangeOwner method
Implementation
Future<BigInt> estimateChangeOwner(String from, String didNewOwner) {
var changeOwnerFunction = _contract.function('changeOwner');
var tx = Transaction.callContract(
contract: _contract,
function: changeOwnerFunction,
parameters: [_didToAddress(didNewOwner)]);
return web3Client.estimateGas(
sender: EthereumAddress.fromHex(from),
data: tx.data,
to: _contract.address);
}