Skip to content

Commit 9825f68

Browse files
authored
add explicit types for blockdata gas limit (#609)
This adds explicit types to the constants `GAS_LIMIT_MINIMUM` and `GAS_LIMIT_MAXIMUM` for all three currently supported changes: `Linea`, `Ethereum` and `OldLinea`. This change is necessary to ensure that, when the `Trace.java` file is generated, the constant always has the same type. Since these are given the type `i64` here, they will always generate a Java constant of type `BigInteger`.
1 parent 061dab9 commit 9825f68

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(module blockdata)
22

3-
(defconst GAS_LIMIT_MINIMUM ETHEREUM_GAS_LIMIT_MINIMUM)
4-
(defconst GAS_LIMIT_MAXIMUM ETHEREUM_GAS_LIMIT_MAXIMUM)
3+
(defconst (GAS_LIMIT_MINIMUM :i64) ETHEREUM_GAS_LIMIT_MINIMUM)
4+
(defconst (GAS_LIMIT_MAXIMUM :i64) ETHEREUM_GAS_LIMIT_MAXIMUM)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(module blockdata)
22

3-
(defconst GAS_LIMIT_MINIMUM LINEA_GAS_LIMIT_MINIMUM)
4-
(defconst GAS_LIMIT_MAXIMUM LINEA_GAS_LIMIT_MAXIMUM)
3+
(defconst (GAS_LIMIT_MINIMUM :i64) LINEA_GAS_LIMIT_MINIMUM)
4+
(defconst (GAS_LIMIT_MAXIMUM :i64) LINEA_GAS_LIMIT_MAXIMUM)
55

66
(defconstraint block-gas-limit-value (:guard IS_GASLIMIT)
77
(eq! BLOCK_GAS_LIMIT LINEA_BLOCK_GAS_LIMIT))
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(module blockdata)
22

3-
(defconst GAS_LIMIT_MINIMUM LINEA_GAS_LIMIT_MINIMUM)
4-
(defconst GAS_LIMIT_MAXIMUM LINEA_GAS_LIMIT_MAXIMUM)
3+
(defconst (GAS_LIMIT_MINIMUM :i64) LINEA_GAS_LIMIT_MINIMUM)
4+
(defconst (GAS_LIMIT_MAXIMUM :i64) LINEA_GAS_LIMIT_MAXIMUM)

0 commit comments

Comments
 (0)