use of com.hederahashgraph.api.proto.java.HederaFunctionality.TokenFeeScheduleUpdate in project hedera-services by hashgraph.
the class HapiTokenFeeScheduleUpdate method feeFor.
@Override
protected long feeFor(HapiApiSpec spec, Transaction txn, int numPayerKeys) throws Throwable {
try {
final TokenInfo info = lookupInfo(spec, token, log, loggingOff);
final FeeCalculator.ActivityMetrics metricsCalc = (_txn, svo) -> usageEstimate(_txn, svo, info);
return spec.fees().forActivityBasedOp(TokenFeeScheduleUpdate, metricsCalc, txn, numPayerKeys);
} catch (Throwable ignore) {
return HapiApiSuite.ONE_HBAR;
}
}
Aggregations