diff --git a/balance-prover/src/api/api.rs b/balance-prover/src/api/api.rs index cb511da..697b090 100644 --- a/balance-prover/src/api/api.rs +++ b/balance-prover/src/api/api.rs @@ -29,7 +29,7 @@ pub async fn prove_send( let proof = state .prove_send( request.pubkey, - &request.tx_witnes, + &request.tx_witness, &request.update_witness, &request.spent_proof, &request.prev_proof, diff --git a/client-sdk/src/external_api/balance_prover.rs b/client-sdk/src/external_api/balance_prover.rs index 678a826..215f927 100644 --- a/client-sdk/src/external_api/balance_prover.rs +++ b/client-sdk/src/external_api/balance_prover.rs @@ -68,14 +68,14 @@ impl BalanceProverClientInterface for BalanceProverClient { &self, _key: KeySet, pubkey: U256, - tx_witnes: &TxWitness, + tx_witness: &TxWitness, update_witness: &UpdateWitness, spent_proof: &ProofWithPublicInputs, prev_proof: &Option>, ) -> Result, ServerError> { let request = ProveSendRequest { pubkey, - tx_witnes: tx_witnes.clone(), + tx_witness: tx_witness.clone(), update_witness: update_witness.clone(), spent_proof: spent_proof.clone(), prev_proof: prev_proof.clone(), diff --git a/interfaces/src/api/balance_prover/types.rs b/interfaces/src/api/balance_prover/types.rs index 111d587..91060f7 100644 --- a/interfaces/src/api/balance_prover/types.rs +++ b/interfaces/src/api/balance_prover/types.rs @@ -33,7 +33,7 @@ pub struct ProveSpentRequest { #[serde(rename_all = "camelCase")] pub struct ProveSendRequest { pub pubkey: U256, - pub tx_witnes: TxWitness, + pub tx_witness: TxWitness, pub update_witness: UpdateWitness, pub spent_proof: ProofWithPublicInputs, pub prev_proof: Option>,