Skip to content

Commit

Permalink
Disallow yielding to children in general subintent
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Dec 13, 2024
1 parent 88d4a3a commit cabe7d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ impl StaticAnalysisCallback for GeneralSubintentDetector {
| InstructionV2::DropAllProofs(..)
| InstructionV2::CallFunction(..)
| InstructionV2::YieldToParent(_)
| InstructionV2::YieldToChild(_)
| InstructionV2::VerifyParent(_) => true,
/* Not Permitted */
InstructionV2::BurnResource(..)
| InstructionV2::CallRoyaltyMethod(..)
| InstructionV2::CallMetadataMethod(..)
| InstructionV2::CallRoleAssignmentMethod(..)
| InstructionV2::CallDirectVaultMethod(..)
| InstructionV2::AllocateGlobalAddress(..) => false,
| InstructionV2::AllocateGlobalAddress(..)
| InstructionV2::YieldToChild(_) => false,
};

if let InstructionV2::YieldToParent(..) = instruction {
Expand Down

0 comments on commit cabe7d6

Please sign in to comment.