Skip to content

Commit

Permalink
Removes objects from errors
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Dec 30, 2020
1 parent 7775ac3 commit 3072884
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 316 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
#[macro_use]
extern crate thiserror;

pub mod objects;
pub mod serialization;
pub mod storage;
107 changes: 0 additions & 107 deletions errors/src/objects/account.rs

This file was deleted.

29 changes: 0 additions & 29 deletions errors/src/objects/amount.rs

This file was deleted.

55 changes: 0 additions & 55 deletions errors/src/objects/block.rs

This file was deleted.

27 changes: 0 additions & 27 deletions errors/src/objects/mod.rs

This file was deleted.

89 changes: 0 additions & 89 deletions errors/src/objects/transaction.rs

This file was deleted.

7 changes: 5 additions & 2 deletions errors/src/storage/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
// You should have received a copy of the GNU General Public License
// along with the snarkOS library. If not, see <https://www.gnu.org/licenses/>.

use crate::objects::{BlockError, TransactionError};
use snarkvm_errors::{algorithms::MerkleError, parameters::ParametersError};
use snarkvm_errors::{
algorithms::MerkleError,
objects::{BlockError, TransactionError},
parameters::ParametersError,
};

use std::fmt::Debug;

Expand Down
4 changes: 1 addition & 3 deletions models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ license = "GPL-3.0"
edition = "2018"

[dependencies]
snarkos-errors = { path = "../errors", version = "1.1.4", default-features = false }

bincode = { version = "1.3.1" }
cfg-if = { version = "0.1.10" }
derivative = { version = "2" }
Expand All @@ -28,7 +26,7 @@ snarkvm-models = { git = "https://github.com/AleoHQ/snarkVM.git", rev = "ce04949
snarkvm-utilities = { git = "https://github.com/AleoHQ/snarkVM.git", rev = "ce04949", version = "0.0.1" }

[features]
default = [ "snarkos-errors/default", "snarkvm-utilities/default", ]
default = [ "snarkvm-errors/default", "snarkvm-utilities/default", ]

[dev-dependencies.criterion]
version = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion models/src/objects/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with the snarkOS library. If not, see <https://www.gnu.org/licenses/>.

use snarkos_errors::objects::AccountError;
use snarkvm_errors::objects::AccountError;
use snarkvm_models::algorithms::{CommitmentScheme, EncryptionScheme, SignatureScheme};

use rand::Rng;
Expand Down
2 changes: 1 addition & 1 deletion models/src/objects/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with the snarkOS library. If not, see <https://www.gnu.org/licenses/>.

use snarkos_errors::objects::TransactionError;
use snarkvm_errors::objects::TransactionError;
use snarkvm_utilities::bytes::{FromBytes, ToBytes};

use std::hash::Hash;
Expand Down

0 comments on commit 3072884

Please sign in to comment.