Skip to content

Commit

Permalink
Merge pull request #19 from exfinen/show-error-if-no-eth
Browse files Browse the repository at this point in the history
Quit with error if no eth balance is found
  • Loading branch information
exfinen authored Dec 8, 2024
2 parents bd86dd4 + bc49592 commit acb9caf
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 acb9caf

Please sign in to comment.