forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TransactionView - sanitization checks (#2757)
- Loading branch information
Showing
11 changed files
with
673 additions
and
31 deletions.
There are no files selected for viewing
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
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
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,3 +1,8 @@ | ||
#[derive(Debug, PartialEq, Eq)] | ||
pub struct TransactionParsingError; | ||
pub type Result<T> = core::result::Result<T, TransactionParsingError>; // no distinction between errors for now | ||
#[repr(u8)] // repr(u8) is used to ensure that the enum is represented as a single byte in memory. | ||
pub enum TransactionViewError { | ||
ParseError, | ||
SanitizeError, | ||
} | ||
|
||
pub type Result<T> = core::result::Result<T, TransactionViewError>; |
Oops, something went wrong.