Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
refactor: make StateError::UndeclaredClassHash a one-line error (#1563)
Browse files Browse the repository at this point in the history
Change previous error which prints out as:
```
Class with hash ClassHash(
    StarkFelt(
        "0x00000000000000000000000000000000000000000000000000000000000004d2",
    ),
) is not declared.
```
into:
```
Class with hash 0x00000000000000000000000000000000000000000000000000000000000004d2 is not declared.
```
  • Loading branch information
zuphitf committed Feb 20, 2024
1 parent e0c55aa commit 696d0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/blockifier/src/state/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 696d0b9

Please sign in to comment.