diff --git a/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G1MultiExpPrecompile.cs b/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G1MultiExpPrecompile.cs index e9b42311eb9..b8e821b6023 100644 --- a/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G1MultiExpPrecompile.cs +++ b/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G1MultiExpPrecompile.cs @@ -42,7 +42,7 @@ public long BaseGasCost(IReleaseSpec releaseSpec) public long DataGasCost(byte[] inputData, IReleaseSpec releaseSpec) { - int k = inputData.Length / 192; + int k = inputData.Length / ItemSize; return 12000L * k * Discount.For(k) / 1000; } diff --git a/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G2MultiExpPrecompile.cs b/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G2MultiExpPrecompile.cs index 9f1b83b74b4..e9d0e2a4646 100644 --- a/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G2MultiExpPrecompile.cs +++ b/src/Nethermind/Nethermind.Evm/Precompiles/Bls/Shamatar/G2MultiExpPrecompile.cs @@ -42,7 +42,7 @@ public long BaseGasCost(IReleaseSpec releaseSpec) public long DataGasCost(byte[] inputData, IReleaseSpec releaseSpec) { - int k = inputData.Length / 288; + int k = inputData.Length / ItemSize; return 55000L * k * Discount.For(k) / 1000;; }