estimateChangeOwner method

Future<BigInt> estimateChangeOwner(
  1. String from,
  2. String didNewOwner
)

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);
}