Skip to content

Commit 5ab61ac

Browse files
authored
Apply suggestions from code review
1 parent 3c20cc1 commit 5ab61ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/sdk/src/common/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ impl fmt::Display for SubmitError {
221221
}
222222
SubmitError::ProofReplaced => write!(
223223
f,
224-
"Proof has been replaced by a higher fee for the same proof"
224+
"Proof has been replaced by a higher fee for the same nonce"
225225
),
226226
SubmitError::GetNonceError(e) => write!(f, "Error while getting nonce {}", e),
227227
SubmitError::UserFundsUnlocked => write!(

crates/sdk/src/communication/messaging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ async fn handle_batcher_response(msg: Message) -> Result<BatchInclusionData, Sub
280280
Err(SubmitError::UserFundsUnlocked)
281281
}
282282
Ok(SubmitProofResponseMessage::ProofReplaced) => {
283-
error!("Proof has been replaced by a higher fee for the same proof. Funds have not been spent.");
283+
error!("Proof has been replaced by a higher fee for the same nonce. Funds have not been spent.");
284284
Err(SubmitError::ProofReplaced)
285285
}
286286
Err(e) => {

0 commit comments

Comments
 (0)