diff --git a/ethcore/src/transaction.rs b/ethcore/src/transaction.rs
index fc9886a4d..a51824494 100644
--- a/ethcore/src/transaction.rs
+++ b/ethcore/src/transaction.rs
@@ -100,10 +100,10 @@ impl FromJson for SignedTransaction {
v: match json.find("v") { Some(ref j) => u16::from_json(j) as u8, None => 0 },
r: match json.find("r") { Some(j) => xjson!(j), None => x!(0) },
s: match json.find("s") { Some(j) => xjson!(j), None => x!(0) },
- hash: RefCell::new(None),
+ hash: Cell::new(None),
sender: match json.find("sender") {
- Some(&Json::String(ref sender)) => RefCell::new(Some(address_from_hex(clean(sender)))),
- _ => RefCell::new(None),
+ Some(&Json::String(ref sender)) => Cell::new(Some(address_from_hex(clean(sender)))),
+ _ => Cell::new(None),
}
}
}
@@ -127,8 +127,8 @@ impl Transaction {
r: r,
s: s,
v: v + 27,
- hash: RefCell::new(None),
- sender: RefCell::new(None)
+ hash: Cell::new(None),
+ sender: Cell::new(None),
}
}
@@ -140,8 +140,8 @@ impl Transaction {
r: U256::zero(),
s: U256::zero(),
v: 0,
- hash: RefCell::new(None),
- sender: RefCell::new(None)
+ hash: Cell::new(None),
+ sender: Cell::new(None),
}
}
@@ -171,9 +171,9 @@ pub struct SignedTransaction {
/// The S field of the signature; helps describe the point on the curve.
s: U256,
/// Cached hash.
- hash: RefCell