Remove Action from spending plans

This commit is contained in:
Greg Fitzgerald
2018-03-20 15:43:04 -06:00
parent 6f509a8a1e
commit 6be3d62d89
4 changed files with 33 additions and 64 deletions

View File

@@ -58,13 +58,13 @@ impl Mint {
mod tests {
use super::*;
use ledger::verify_slice;
use plan::{Action, Plan};
use plan::Plan;
#[test]
fn test_create_events() {
let mut events = Mint::new(100).create_events().into_iter();
if let Event::Transaction(tr) = events.next().unwrap() {
if let Plan::Action(Action::Pay(payment)) = tr.plan {
if let Plan::Pay(payment) = tr.plan {
assert_eq!(tr.from, payment.to);
}
}