estimateRevoke method

Future<BigInt> estimateRevoke(
  1. String fromAddress,
  2. String credDidToRevoke
)

Implementation

Future<BigInt> estimateRevoke(String fromAddress, String credDidToRevoke) {
  var revokeFunction = _contract.function('revoke');
  var tx = Transaction.callContract(
      contract: _contract,
      function: revokeFunction,
      parameters: [_didToAddress(credDidToRevoke)]);
  return web3Client.estimateGas(
      sender: EthereumAddress.fromHex(fromAddress),
      data: tx.data,
      to: _contract.address);
}