We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instead of using unwrap you should prefer to use the anyhow crate and have something like (notice the ?):
unwrap
?
fn main() -> Result<(), anyhow::Error> { // ... let input_deposit: DepositInput = serde_json::from_str(input_json_data)?; let cfg = CircomConfig::<Bn254>::new( "./circuits/withdraw_js/withdraw.wasm", "./circuits/withdraw.r1cs", )?; // Insert our public inputs as key value pairs let mut builder = CircomBuilder::new(cfg); builder.push_input( "root", BigInt::parse_bytes(input_deposit.root.as_bytes(), 10)?, ); builder.push_input( "nullifierHash", BigInt::parse_bytes(input_deposit.nullifier_hash.as_bytes(), 10)?, ); // ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
instead of using
unwrap
you should prefer to use the anyhow crate and have something like (notice the?
):The text was updated successfully, but these errors were encountered: