Skip to content

Commit 64c4bb2

Browse files
0xMimirdannywillems
authored andcommitted
Updated handling in graphql to be like ocaml
1 parent 277a79f commit 64c4bb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

node/native/src/graphql/zkapp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ impl TryFrom<InputGraphQLAuthorization> for MinaBaseControlStableV2 {
324324
)?;
325325
Ok(MinaBaseControlStableV2::Proof(Box::new(proof)))
326326
}
327+
// Handle no auth case
328+
(None, None) => Ok(MinaBaseControlStableV2::NoneGiven),
327329
_ => Err(ConversionError::Custom(
328330
"Either signature or proof must be provided, but not both".into(),
329331
)),

0 commit comments

Comments
 (0)