From 763e2ff17d45a721d0c3476232c36013096b3223 Mon Sep 17 00:00:00 2001 From: David Edey Date: Wed, 13 Nov 2024 02:09:31 +0000 Subject: [PATCH] fix: Fix test compilation error --- ...nagerValidatorNonFungibleResourceAndDataStateTest.java | 4 ++-- .../com/radixdlt/api/engine_state/BlueprintInfoTest.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/test/java/com/radixdlt/api/core/EpochManagerValidatorNonFungibleResourceAndDataStateTest.java b/core/src/test/java/com/radixdlt/api/core/EpochManagerValidatorNonFungibleResourceAndDataStateTest.java index 02163cd3ce..f8bbbf371d 100644 --- a/core/src/test/java/com/radixdlt/api/core/EpochManagerValidatorNonFungibleResourceAndDataStateTest.java +++ b/core/src/test/java/com/radixdlt/api/core/EpochManagerValidatorNonFungibleResourceAndDataStateTest.java @@ -129,8 +129,8 @@ public void test_misc_state_endpoints() throws Exception { (RoleAssignmentModuleFieldOwnerRoleSubstate) validatorResponse.getOwnerRole(); final var ownerRole = ownerRoleSubstate.getValue().getOwnerRole(); final var accessRule = (ProtectedAccessRule) ownerRole.getRule(); - final var proofRuleNode = (ProofAccessRuleNode) accessRule.getAccessRule(); - final var requireProofRule = (RequireProofRule) proofRuleNode.getProofRule(); + final var proofRuleNode = (ProofRuleCompositeRequirement) accessRule.getAccessRule(); + final var requireProofRule = (RequireBasicRequirement) proofRuleNode.getProofRule(); final var requirement = (NonFungibleRequirement) requireProofRule.getRequirement(); final var nonFungibleResourceAddress = requirement.getNonFungible().getResourceAddress(); final var nonFungibleLocalId = requirement.getNonFungible().getLocalId(); diff --git a/core/src/test/java/com/radixdlt/api/engine_state/BlueprintInfoTest.java b/core/src/test/java/com/radixdlt/api/engine_state/BlueprintInfoTest.java index 840e283cef..c358743cbc 100644 --- a/core/src/test/java/com/radixdlt/api/engine_state/BlueprintInfoTest.java +++ b/core/src/test/java/com/radixdlt/api/engine_state/BlueprintInfoTest.java @@ -130,9 +130,9 @@ public void engine_state_api_returns_blueprint_info() throws Exception { .rule( new ProtectedAccessRule() .accessRule( - new ProofAccessRuleNode() + new ProofRuleCompositeRequirement() .proofRule( - new RequireProofRule() + new RequireBasicRequirement() .requirement( new NonFungibleRequirement() .nonFungible( @@ -141,8 +141,8 @@ public void engine_state_api_returns_blueprint_info() throws Exception { "resource_test1nfxxxxxxxxxxsystxnxxxxxxxxx002683325037xxxxxxxxx39ajmy") .localId("#0#")) .type(RequirementType.NONFUNGIBLE)) - .type(ProofRuleType.REQUIRE)) - .type(AccessRuleNodeType.PROOFRULE)) + .type(BasicRequirementType.REQUIRE)) + .type(CompositeRequirementType.PROOFRULE)) .type(AccessRuleType.PROTECTED)) .type(BlueprintFunctionAuthorizationType.BYACCESSRULE));