aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lockchain-core/src/init.rs')
-rw-r--r--lockchain-core/src/init.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lockchain-core/src/init.rs b/lockchain-core/src/init.rs
index f7f2d5d..bf40518 100644
--- a/lockchain-core/src/init.rs
+++ b/lockchain-core/src/init.rs
@@ -1,4 +1,5 @@
use traits::{Body, Vault};
+use errors::VaultError;
/// Describes the internal permission layout of a vault
pub enum VaultType {
@@ -69,7 +70,7 @@ impl Generator {
}
/// Finally call this function to construct the vault
- pub fn finalise<V, B>(self) -> V
+ pub fn finalise<V, B>(self) -> Result<V, VaultError>
where
V: Vault<B>,
B: Body,