use of com.hedera.hashgraph.sdk.FeeSchedules in project hedera-sdk-java by hashgraph.
the class FeeSchedulesTest method canFetchFeeSchedules.
@Test
@DisplayName("FeeSchedules (CurrentAndNextFeeSchedule) is fetched and parsed from file 0.0.111")
void canFetchFeeSchedules() throws Exception {
var testEnv = new IntegrationTestEnv(1);
ByteString feeSchedulesBytes = new FileContentsQuery().setFileId(new FileId(0, 0, 111)).execute(testEnv.client);
FeeSchedules feeSchedules = FeeSchedules.fromBytes(feeSchedulesBytes.toByteArray());
/*
* Test whether the file 0.0.111 actually contains stuff
*/
assertThat(feeSchedules.getCurrent()).isNotNull();
testEnv.close();
}
Aggregations