Skip to content

Commit d44ad43

Browse files
apollo_gateway: correct logging error to print address (#9390)
1 parent d2dabd5 commit d44ad43

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/apollo_gateway/src/stateful_transaction_validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl<B: BlockifierStatefulValidatorTrait> StatefulTransactionValidatorTrait
127127
self.blockifier_stateful_tx_validator.get_nonce(address).map_err(|e| {
128128
// TODO(noamsp): Fix this. Need to map the errors better.
129129
StarknetError::internal_with_signature_logging(
130-
"Failed to get nonce for sender address {address}",
130+
format!("Failed to get nonce for sender address {address}"),
131131
&executable_tx.signature(),
132132
e,
133133
)

crates/apollo_gateway_types/src/deprecated_gateway_error.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use std::fmt::Display;
2+
13
#[cfg(any(feature = "testing", test))]
24
use enum_iterator::Sequence;
35
use serde::de::Error;
@@ -75,7 +77,7 @@ impl StarknetError {
7577
}
7678

7779
pub fn internal_with_signature_logging(
78-
log_message: &str,
80+
log_message: impl Display,
7981
tx_signature: &TransactionSignature,
8082
err: impl std::error::Error,
8183
) -> Self {

0 commit comments

Comments
 (0)