Skip to content

Commit caee3f4

Browse files
committed
Fix build
1 parent d7d704f commit caee3f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/frontend/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,10 +826,14 @@ impl MainPodCompiler {
826826
fn compile_op(&self, op: &Operation) -> Result<middleware::Operation> {
827827
// TODO
828828
let mop_code: OperationType = op.0.clone();
829+
// TODO: Take Merkle proof into account.
829830
let mop_args =
830831
op.1.iter()
831-
.flat_map(|arg| self.compile_op_arg(arg).map(|s| Ok(s.try_into()?)))
832-
.collect::<Result<Vec<middleware::Statement>>>()?;
832+
.flat_map(|arg| {
833+
self.compile_op_arg(arg)
834+
.map(|s| Ok(middleware::OperationArg::Statement(s.try_into()?)))
835+
})
836+
.collect::<Result<Vec<_>>>()?;
833837
middleware::Operation::op(mop_code, &mop_args)
834838
}
835839

0 commit comments

Comments
 (0)