Plan -> Budget

Budget is now an EDSL. PaymentPlan is the interface to it.
This commit is contained in:
Greg Fitzgerald
2018-05-29 13:08:59 -06:00
parent ad00d7bd9c
commit aa7e3df8d6
5 changed files with 42 additions and 42 deletions

View File

@ -179,7 +179,7 @@ mod tests {
use futures::Future;
use logger;
use mint::Mint;
use plan::Plan;
use plan::Budget;
use server::Server;
use signature::{KeyPair, KeyPairUtil};
use std::io::sink;
@ -282,7 +282,7 @@ mod tests {
let mut tr2 = Transaction::new(&alice.keypair(), bob_pubkey, 501, last_id);
if let Instruction::NewContract(contract) = &mut tr2.instruction {
contract.tokens = 502;
contract.plan = Plan::new_payment(502, bob_pubkey);
contract.plan = Budget::new_payment(502, bob_pubkey);
}
let _sig = client.transfer_signed(tr2).unwrap();