Skip to content

Commit 102fe90

Browse files
authored
refactor(succinct-client): gateway not found (#337)
1 parent 889643f commit 102fe90

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

client/src/request.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct OffchainInput {
3838
}
3939

4040
#[allow(non_snake_case)]
41-
#[derive(Serialize, Deserialize)]
41+
#[derive(Serialize, Deserialize, Debug)]
4242
/// Proof data for a Succinct X function call.
4343
/// This is the data that is returned from the Succinct X API.
4444
struct SuccinctProofData {
@@ -387,10 +387,12 @@ impl SuccinctClient {
387387
let client = Arc::new(SignerMiddleware::new(provider, wallet.clone()));
388388

389389
let address = get_gateway_address(succinct_proof_data.chain_id);
390-
info!(
391-
"Could not find canonical gateway address for chain {}",
392-
succinct_proof_data.chain_id
393-
);
390+
if address.is_none() {
391+
info!(
392+
"Could not find canonical gateway address for chain {}",
393+
succinct_proof_data.chain_id
394+
);
395+
}
394396

395397
// If gateway_address is provided, use that instead of the canonical gateway address.
396398
let mut gateway_address = gateway_address.or(address).expect(

0 commit comments

Comments
 (0)