Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
fix memory model
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed Mar 26, 2024
1 parent 2406f88 commit 2a1ff21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbos/programs/programs.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (p Programs) CallProgram(

// pay for program init
open, ever := statedb.GetStylusPages()
model := NewMemoryModel(params.FreePages, params.FreePages)
model := NewMemoryModel(params.FreePages, params.PageGas)
memoryCost := model.GasCost(program.footprint, open, ever)
callCost := uint64(program.initGas) + uint64(params.MinInitGas)
cost := common.SaturatingUAdd(memoryCost, callCost)
Expand Down

0 comments on commit 2a1ff21

Please sign in to comment.