Update data restore module
@@ -195,7 +195,7 @@ impl TreeState {
.ok_or_else(|| {
format_err!("ForcedExit fail: Nonexistent initiator account")
})?;
- let (_, target_account) = self
+ let (target_account_id, _) = self
.state
.get_account_by_address(&op.tx.target)
.ok_or_else(|| {
@@ -203,7 +203,7 @@ impl TreeState {
})?;
// Set the fields unknown from the pubdata.
- op.tx.target = target_account.address;
+ op.target_account_id = target_account_id;
op.tx.nonce = initiator_account.nonce;
let tx = FranklinTx::ForcedExit(Box::new(op.tx.clone()));
