Skip to content

Commit d1f9704

Browse files
committed
schema: add Script::as_alu_script method
1 parent c93184d commit d1f9704

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/schema/script.rs

+5
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,9 @@ impl Script {
6969
Script::AluVM(_) => VmType::AluVM,
7070
}
7171
}
72+
73+
pub fn as_alu_script(&self) -> &AluScript {
74+
let Script::AluVM(alu) = self;
75+
alu
76+
}
7277
}

0 commit comments

Comments
 (0)