Skip to content

Commit

Permalink
Remove a hardcoded constant
Browse files Browse the repository at this point in the history
  • Loading branch information
algochoi committed Aug 11, 2021
1 parent c4a2f2c commit 16e147d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/transactions/logic/evalStateful_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2903,10 +2903,10 @@ func TestPooledAppCallsVerifyOp(t *testing.T) {
ep.Proto.EnableAppCostPooling = true
ep.PooledApplicationBudget = new(uint64)
// Simulate test with 2 grouped txn
*ep.PooledApplicationBudget = uint64(1400)
*ep.PooledApplicationBudget = uint64(ep.Proto.MaxAppProgramCost * 2)
testApp(t, source, ep, "pc=107 dynamic cost budget exceeded, executing ed25519verify: remaining budget is 1400 but program cost was 1905")

// Simulate test with 3 grouped txn
*ep.PooledApplicationBudget = uint64(2100)
*ep.PooledApplicationBudget = uint64(ep.Proto.MaxAppProgramCost * 3)
testApp(t, source, ep)
}

0 comments on commit 16e147d

Please sign in to comment.