parser: rm multisig db

This commit is contained in:
k
2024-08-05 11:47:52 +02:00
parent 9a8f5edd58
commit ce1fed8c16
16 changed files with 369 additions and 205 deletions

View File

@@ -2,6 +2,7 @@ use std::{fmt::Debug, fs, path::Path};
use allocative::Allocative;
use bincode::{Decode, Encode};
use color_eyre::eyre::eyre;
use serde::{de::DeserializeOwned, Serialize};
use crate::io::{Binary, Json};
@@ -61,7 +62,7 @@ impl Serialization {
return Binary::import(compressed_bin_path);
}
panic!("Wrong path")
Err(eyre!("Wrong path or no file"))
}
}
Serialization::Json => {
@@ -76,7 +77,7 @@ impl Serialization {
return Json::import(json_path);
}
panic!("Wrong path")
Err(eyre!("Wrong path or no file"))
}
}
}