File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
src/main/scala/io/iohk/ethereum/vm Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,8 @@ object Blake2bCompression {
34
34
35
35
private def bytesToLong (bytes : Array [Byte ]) = Pack .littleEndianToLong(bytes, 0 )
36
36
37
- def isValidInput (input : Array [Byte ]): Boolean = {
38
- if (input.length != MessageBytesLength || (input(212 ) & 0xFE ) != 0 ) {
39
- false
40
- } else {
41
- true
42
- }
43
- }
37
+ def isValidInput (input : Array [Byte ]): Boolean =
38
+ ! (input.length != MessageBytesLength || (input(212 ) & 0xFE ) != 0 )
44
39
45
40
def parseNumberOfRounds (input : Array [Byte ]): Long =
46
41
Integer .toUnsignedLong(bytesToInt(copyOfRange(input, 0 , 4 )))
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ object PrecompiledContracts {
40
40
Bn128PairingAddr -> Bn128Pairing
41
41
)
42
42
43
- val istanbulPhoenisContracts = byzantiumAtlantisContracts ++ Map (
43
+ val istanbulPhoenixContracts = byzantiumAtlantisContracts ++ Map (
44
44
Blake2bCompressionAddr -> Blake2bCompress
45
45
)
46
46
/**
@@ -63,7 +63,7 @@ object PrecompiledContracts {
63
63
val etcFork = context.evmConfig.blockchainConfig.etcForkForBlockNumber(context.blockHeader.number)
64
64
65
65
if (ethFork >= EthForks .Istanbul || etcFork >= EtcForks .Phoenix ) {
66
- istanbulPhoenisContracts .get(addr)
66
+ istanbulPhoenixContracts .get(addr)
67
67
} else if (ethFork >= EthForks .Byzantium || etcFork >= EtcForks .Atlantis ) {
68
68
// byzantium and atlantis hard fork introduce the same set of precompiled contracts
69
69
byzantiumAtlantisContracts.get(addr)
You can’t perform that action at this time.
0 commit comments