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