mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
Fix for gas costs in 32 bit
This commit is contained in:
parent
1bf432fd46
commit
66adba9037
@ -125,8 +125,8 @@ template gasCosts(FeeSchedule: GasFeeSchedule, prefix, ResultGasCostsName: untyp
|
||||
# M(currentMemSize, f, l) = currentMemSize
|
||||
|
||||
let
|
||||
prev_words = currentMemSize.wordCount
|
||||
new_words = (memOffset + memLength).wordCount
|
||||
prev_words: int64 = currentMemSize.wordCount
|
||||
new_words: int64 = (memOffset + memLength).wordCount
|
||||
|
||||
if memLength == 0 or new_words <= prev_words:
|
||||
# Special subcase of memory-expansion cost
|
||||
|
Loading…
x
Reference in New Issue
Block a user