From 696d0b9eda9c7d67ee6529af0243687cca734230 Mon Sep 17 00:00:00 2001 From: zuphitf <51879558+zuphitf@users.noreply.github.com> Date: Tue, 20 Feb 2024 19:14:26 +0200 Subject: [PATCH] refactor: make StateError::UndeclaredClassHash a one-line error (#1563) Change previous error which prints out as: ``` Class with hash ClassHash( StarkFelt( "0x00000000000000000000000000000000000000000000000000000000000004d2", ), ) is not declared. ``` into: ``` Class with hash 0x00000000000000000000000000000000000000000000000000000000000004d2 is not declared. ``` --- crates/blockifier/src/state/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/blockifier/src/state/errors.rs b/crates/blockifier/src/state/errors.rs index 645cb443db..7a908f7381 100644 --- a/crates/blockifier/src/state/errors.rs +++ b/crates/blockifier/src/state/errors.rs @@ -18,7 +18,7 @@ pub enum StateError { ProgramError(#[from] ProgramError), #[error("Requested {0:?} is unavailable for deployment.")] UnavailableContractAddress(ContractAddress), - #[error("Class with hash {0:#?} is not declared.")] + #[error("Class with hash {0} is not declared.")] UndeclaredClassHash(ClassHash), #[error(transparent)] StarknetApiError(#[from] StarknetApiError),