From 09ca0412bdeef53a48bc4c62d042ef8b58cfc380 Mon Sep 17 00:00:00 2001 From: John Cairns Date: Fri, 1 Nov 2024 19:07:12 -0500 Subject: [PATCH] fix: unwrap_or onchain/interface/src/instructions.rs Co-authored-by: austbot --- onchain/interface/src/instructions.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onchain/interface/src/instructions.rs b/onchain/interface/src/instructions.rs index e4cbd6f..1bc9d3b 100644 --- a/onchain/interface/src/instructions.rs +++ b/onchain/interface/src/instructions.rs @@ -322,8 +322,7 @@ pub fn execute_v1_with_accounts<'a>( None }; - let prover_version = prover_version.or(Some(ProverVersion::default())); - let prover_version = prover_version.unwrap(); + let prover_version = prover_version.unwrap_or(ProverVersion::default()); let fbb_execute = ExecutionRequestV1::create( &mut fbb,