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