Resurrect the tests
This commit is contained in:
@ -43,12 +43,18 @@ impl BudgetInstruction {
|
||||
to: Pubkey,
|
||||
dt: DateTime<Utc>,
|
||||
) -> BuilderInstruction {
|
||||
let keys = vec![(from, true), (contract, false), (to, false)];
|
||||
let mut keys = vec![(from, true), (contract, false)];
|
||||
if from != to {
|
||||
keys.push((to, false));
|
||||
}
|
||||
BuilderInstruction::new(id(), &BudgetInstruction::ApplyTimestamp(dt), keys)
|
||||
}
|
||||
|
||||
pub fn new_apply_signature(from: Pubkey, contract: Pubkey, to: Pubkey) -> BuilderInstruction {
|
||||
let keys = vec![(from, true), (contract, false), (to, false)];
|
||||
let mut keys = vec![(from, true), (contract, false)];
|
||||
if from != to {
|
||||
keys.push((to, false));
|
||||
}
|
||||
BuilderInstruction::new(id(), &BudgetInstruction::ApplySignature, keys)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user