use of com.hedera.services.state.submerkle.FcTokenAllowanceId in project hedera-services by hashgraph.
the class SerializationUtils method deserializeNftAllowances.
public static Map<FcTokenAllowanceId, FcTokenAllowance> deserializeNftAllowances(final SerializableDataInputStream in) throws IOException {
var numNftAllowances = in.readInt();
if (numNftAllowances == 0) {
return Collections.emptyMap();
}
final Map<FcTokenAllowanceId, FcTokenAllowance> nftAllowances = new TreeMap<>();
while (numNftAllowances-- > 0) {
final FcTokenAllowanceId nftAllowanceId = in.readSerializable();
final FcTokenAllowance value = in.readSerializable();
nftAllowances.put(nftAllowanceId, value);
}
return nftAllowances;
}
Aggregations