Fix Budget's payment_with_fee test
Fee is now independent of the contract.
This commit is contained in:
@ -166,7 +166,7 @@ impl BudgetTransaction {
|
|||||||
if let Some(BudgetInstruction::InitializeAccount(expr)) =
|
if let Some(BudgetInstruction::InitializeAccount(expr)) =
|
||||||
BudgetTransaction::instruction(&tx, 1)
|
BudgetTransaction::instruction(&tx, 1)
|
||||||
{
|
{
|
||||||
if !(tx.fee <= lamports && expr.verify(lamports - tx.fee)) {
|
if !expr.verify(lamports) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user