estimateChangeOwner method

Future<BigInt> estimateChangeOwner(
  1. String identityDid,
  2. String newDid
)

Implementation

Future<BigInt> estimateChangeOwner(String identityDid, String newDid) {
  var changeOwnerFunction = _erc1056contract.function('changeOwner');
  var tx = Transaction.callContract(
      contract: _erc1056contract,
      function: changeOwnerFunction,
      parameters: [_didToAddress(identityDid), _didToAddress(newDid)]);
  return web3Client.estimateGas(
      sender: _didToAddress(identityDid), data: tx.data, to: contractAddress);
}