From f6af2645b912f646f0abe6f36dbfee55cd21895e Mon Sep 17 00:00:00 2001 From: dferendo Date: Mon, 1 Apr 2024 22:05:31 +0900 Subject: [PATCH] updated abi --- client/src/request.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/request.rs b/client/src/request.rs index 3ce38fbe..72087ec1 100644 --- a/client/src/request.rs +++ b/client/src/request.rs @@ -23,7 +23,7 @@ use crate::utils::get_gateway_address; abigen!( MockSuccinctGateway, r"[ - function getValue() external returns (uint256) + function fulfillCall(bytes32,bytes,bytes,bytes,address,bytes) external ]" ); @@ -422,13 +422,13 @@ impl SuccinctClient { // Submit the proof to the Succinct X API. println!("contract: {:?}", gateway_address_bytes); let tx: Option = contract - .get_value( - // succinct_proof_data.function_id.0, - // ethers::types::Bytes(succinct_proof_data.input.0), - // ethers::types::Bytes(succinct_proof_data.output.0), - // ethers::types::Bytes(succinct_proof_data.proof.0), - // H160(succinct_proof_data.to.0 .0), - // ethers::types::Bytes(succinct_proof_data.calldata.0), + .fulfill_call( + succinct_proof_data.function_id.0, + ethers::types::Bytes(succinct_proof_data.input.0), + ethers::types::Bytes(succinct_proof_data.output.0), + ethers::types::Bytes(succinct_proof_data.proof.0), + H160(succinct_proof_data.to.0 .0), + ethers::types::Bytes(succinct_proof_data.calldata.0), ) .send() .await