diff --git a/core/src/cell.rs b/core/src/cell.rs index 96214710a1..da180d2249 100644 --- a/core/src/cell.rs +++ b/core/src/cell.rs @@ -217,7 +217,7 @@ mod tests { capacity: 2, data: vec![], lock: H256::default(), - contract: None, + type_: None, }; db.cells.insert(p1.clone(), Some(o.clone())); diff --git a/core/src/error.rs b/core/src/error.rs index c1e56af1a9..192fe039a3 100644 --- a/core/src/error.rs +++ b/core/src/error.rs @@ -18,11 +18,3 @@ impl From for Error { Error::InvalidSignature(e) } } - -#[derive(Debug, PartialEq, Eq)] -pub enum TxError { - OutOfBound, - NotMatch, - EmptyGroup, - WrongFormat, -} diff --git a/core/src/transaction.rs b/core/src/transaction.rs index ccaf942835..a643998caf 100644 --- a/core/src/transaction.rs +++ b/core/src/transaction.rs @@ -79,16 +79,17 @@ pub struct CellOutput { pub capacity: Capacity, pub data: Vec, pub lock: H256, - pub contract: Option