Move smart contract fields into their own struct

This commit is contained in:
Greg Fitzgerald
2018-03-10 16:55:39 -07:00
parent 1e07014f86
commit 7a0bc7d888
3 changed files with 38 additions and 23 deletions

View File

@@ -63,7 +63,7 @@ mod tests {
fn test_create_events() {
let mut events = Mint::new(100).create_events().into_iter();
if let Event::Transaction(tr) = events.next().unwrap() {
assert_eq!(tr.from, tr.to);
assert_eq!(tr.from, tr.plan.to);
}
assert_eq!(events.next(), None);
}