estimateRevokeDelegate method
Implementation
Future<BigInt> estimateRevokeDelegate(
String identityDid, String delegateType, String delegateDid) {
var revokeDelegateFunction = _erc1056contract.function('revokeDelegate');
Transaction tx = Transaction.callContract(
contract: _erc1056contract,
function: revokeDelegateFunction,
parameters: [
_didToAddress(identityDid),
_to32ByteUtf8(delegateType),
_didToAddress(delegateDid)
]);
return web3Client.estimateGas(
sender: _didToAddress(identityDid), data: tx.data, to: contractAddress);
}