Skip to content

Commit

Permalink
refactor: rename OutofBound -> OutOfBound
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsoledad committed Dec 26, 2018
1 parent 806d1f0 commit f348821
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl From<CrypError> for Error {

#[derive(Debug, PartialEq, Eq)]
pub enum TxError {
OutofBound,
OutOfBound,
NotMatch,
EmptyGroup,
WrongFormat,
Expand Down
2 changes: 1 addition & 1 deletion verification/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub enum DifficultyError {
#[derive(Debug, PartialEq, Clone, Copy, Eq)]
pub enum TransactionError {
NullInput,
OutofBound,
OutOfBound,
DuplicateInputs,
Empty,
InvalidCapacity,
Expand Down
2 changes: 1 addition & 1 deletion verification/src/tests/transaction_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn test_capacity_outofbound() {
};
let verifier = CapacityVerifier::new(&rtx);

assert_eq!(verifier.verify().err(), Some(TransactionError::OutofBound));
assert_eq!(verifier.verify().err(), Some(TransactionError::OutOfBound));
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion verification/src/transaction_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl<'a> CapacityVerifier<'a> {
.iter()
.any(|output| output.bytes_len() as Capacity > output.capacity)
{
Err(TransactionError::OutofBound)
Err(TransactionError::OutOfBound)
} else {
Ok(())
}
Expand Down

0 comments on commit f348821

Please sign in to comment.