use of com.hedera.services.state.merkle.MerkleToken in project hedera-services by hashgraph.
the class TokenMetaUtilsTest method classifiesRoyaltyWithNoFallback.
@Test
void classifiesRoyaltyWithNoFallback() {
// setup:
final var treasury = new EntityId(1, 2, 4);
var royaltyFeeNoFallbackToken = new MerkleToken(Long.MAX_VALUE, 100, 1, "ZPHYR", "West Wind Art", false, true, treasury);
royaltyFeeNoFallbackToken.setTokenType(NON_FUNGIBLE_UNIQUE);
royaltyFeeNoFallbackToken.setFeeSchedule(List.of(FcCustomFee.royaltyFee(1, 2, null, new EntityId(1, 2, 5))));
// given:
final var meta = TokenMetaUtils.signingMetaFrom(royaltyFeeNoFallbackToken);
// expect:
assertFalse(meta.hasRoyaltyWithFallback());
assertSame(treasury, meta.treasury());
}
Aggregations