remove MockSignedPod (#339)
- breaking change: Removal of MockSignedPod. Use SignedPod instead. - breaking change: Redefinition of numerical id for values of PodType.
This commit is contained in:
parent
06b84e8dca
commit
b5e0d97cb6
14 changed files with 79 additions and 358 deletions
|
|
@ -56,7 +56,7 @@ mod backend {
|
|||
use crate::backends::plonky2::{
|
||||
emptypod::EmptyPod,
|
||||
mainpod::MainPod,
|
||||
mock::{emptypod::MockEmptyPod, mainpod::MockMainPod, signedpod::MockSignedPod},
|
||||
mock::{emptypod::MockEmptyPod, mainpod::MockMainPod},
|
||||
signedpod::SignedPod,
|
||||
};
|
||||
|
||||
|
|
@ -74,9 +74,7 @@ mod backend {
|
|||
id: PodId,
|
||||
data: serde_json::Value,
|
||||
) -> Result<Box<dyn Pod>, BackendError> {
|
||||
if pod_type == PodType::MockSigned as usize {
|
||||
MockSignedPod::deserialize(id, data)
|
||||
} else if pod_type == PodType::Signed as usize {
|
||||
if pod_type == PodType::Signed as usize {
|
||||
SignedPod::deserialize(id, data)
|
||||
} else {
|
||||
Err(BackendError::custom(format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue