Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 6e5f134

Browse files
authored
Move from u128 to u256 (#47)
1 parent 074c2ad commit 6e5f134

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Primitives.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ struct Route {
128128
uint64 gasLimit;
129129
uint128 baseFee;
130130
bytes32 gateway;
131-
uint128 relativeGasPriceNumerator;
132-
uint128 relativeGasPriceDenominator;
131+
uint256 relativeGasPriceNumerator;
132+
uint256 relativeGasPriceDenominator;
133133
}
134134

135135
/**

src/utils/GasUtils.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ library GasUtils {
3838
* Obs: To guarantee the overhead is constant regardless the input size, always use `calldata` instead of `memory`
3939
* for external functions.
4040
*/
41-
uint256 internal constant EXECUTION_SELECTOR_OVERHEAD = 474;
41+
uint256 internal constant EXECUTION_SELECTOR_OVERHEAD = 496;
4242

4343
/**
4444
* @dev Base cost of the `IExecutor.execute` method.
@@ -48,7 +48,7 @@ library GasUtils {
4848
/**
4949
* @dev Base cost of the `IGateway.submitMessage` method.
5050
*/
51-
uint256 internal constant SUBMIT_BASE_COST = 24138 - 96;
51+
uint256 internal constant SUBMIT_BASE_COST = 24064;
5252

5353
/**
5454
* @dev Extra gas cost that any account `Contract or EOA` must pay when calling `IGateway.submitMessage` method.

0 commit comments

Comments
 (0)