Skip to content

Commit

Permalink
quit with error if no eth balance is found
Browse files Browse the repository at this point in the history
  • Loading branch information
exfinen committed Dec 8, 2024
1 parent 7c3611e commit bc49592
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tlsn/examples/binance/binance_prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,10 @@ async fn build_proof_with_redactions(mut prover: Prover<Notarize>, api_key: &str
let (_, recv_private_ranges) = find_ranges_regex(
prover.recv_transcript().data(),
&[r#""ETH","free":"(\d+\.\d\d)"#]

);
if recv_private_ranges.len() == 0 {
panic!("No ETH balance found");
}
println!("Received private ranges: {:?}", recv_private_ranges);

let builder = prover.commitment_builder();
Expand Down

0 comments on commit bc49592

Please sign in to comment.