fixes precompile contract: identity gascost

This commit is contained in:
andri lim 2019-02-14 21:47:22 +07:00 committed by zah
parent 8b8302dd90
commit 5701c8bacb
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ proc ripemd160*(computation: var BaseComputation) =
proc identity*(computation: var BaseComputation) = proc identity*(computation: var BaseComputation) =
let let
wordCount = computation.msg.data.len div 32 wordCount = wordCount(computation.msg.data.len)
gasFee = GasIdentity + wordCount * GasIdentityWord gasFee = GasIdentity + wordCount * GasIdentityWord
computation.gasMeter.consumeGas(gasFee, reason="Identity Precompile") computation.gasMeter.consumeGas(gasFee, reason="Identity Precompile")