From cb20cd655d07574f7ca1f98c8488199a63168129 Mon Sep 17 00:00:00 2001 From: Petar Vujovic Date: Thu, 9 May 2024 11:01:20 +0200 Subject: [PATCH] fix: Expect error for creating RBDP --- host/src/raiko.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host/src/raiko.rs b/host/src/raiko.rs index 4a930dcb8..330bbaa8e 100644 --- a/host/src/raiko.rs +++ b/host/src/raiko.rs @@ -249,7 +249,8 @@ mod tests { async fn prove_block(chain_spec: ChainSpec, proof_request: ProofRequest) { let provider = - RpcBlockDataProvider::new(&proof_request.rpc.clone(), proof_request.block_number - 1); + RpcBlockDataProvider::new(&proof_request.rpc.clone(), proof_request.block_number - 1) + .expect("Could not create RpcBlockDataProvider"); let raiko = Raiko::new(chain_spec, proof_request.clone()); let mut input = raiko .generate_input(provider)