fixes precompile contract: identity gascost
This commit is contained in:
parent
8b8302dd90
commit
5701c8bacb
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue