estimateRevokeAttribute method
Implementation
Future<BigInt> estimateRevokeAttribute(
String identityDid, String name, String value) {
var revokeAttributeFunction = _erc1056contract.function('revokeAttribute');
var nameList = _to32ByteUtf8(name);
var valueList = Uint8List.fromList(utf8.encode(value));
Transaction tx = Transaction.callContract(
contract: _erc1056contract,
function: revokeAttributeFunction,
parameters: [_didToAddress(identityDid), nameList, valueList]);
return web3Client.estimateGas(
sender: _didToAddress(identityDid), data: tx.data, to: contractAddress);
}