-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(blockifier_reexecution): add reexecution errors (#1302)
- Loading branch information
1 parent
087af3b
commit 8f378b7
Showing
5 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod compile; | ||
mod errors; | ||
#[cfg(test)] | ||
pub mod raw_rpc_json_test; | ||
#[cfg(test)] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use blockifier::state::errors::StateError; | ||
use blockifier::versioned_constants::VersionedConstantsError; | ||
use serde_json::Error as SerdeError; | ||
use starknet_gateway::errors::RPCStateReaderError; | ||
use thiserror::Error; | ||
|
||
#[derive(Debug, Error)] | ||
#[allow(clippy::enum_variant_names)] | ||
pub enum ReexecutionError { | ||
#[error(transparent)] | ||
State(#[from] StateError), | ||
#[error(transparent)] | ||
Rpc(#[from] RPCStateReaderError), | ||
#[error(transparent)] | ||
Serde(#[from] SerdeError), | ||
#[error(transparent)] | ||
VersionedConstants(#[from] VersionedConstantsError), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters