Skip to content

Commit 8145d2c

Browse files
committed
fix: update 1559 fields
1 parent 372bcbe commit 8145d2c

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/Passage.sol

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ contract Passage {
2828
bytes data,
2929
uint256 value,
3030
uint256 gas,
31-
uint256 maxPrioFee,
32-
uint256 maxBaseFee
31+
uint256 maxFeePerGas
3332
);
3433

3534
/// @notice Emitted when the admin withdraws tokens from the contract.
@@ -73,31 +72,22 @@ contract Passage {
7372
/// @param data - The data to send to the rollup.
7473
/// @param value - The amount of Ether to send on the rollup.
7574
/// @param gas - The gas limit for the transaction.
76-
/// @param maxPrioFee - The maximum priority fee for the transaction.
77-
/// @param maxBaseFee - The maximum base fee for the transaction.
75+
/// @param maxFeePerGas - The maximum fee per gas for the transaction (per EIP-1559).
7876
/// @custom:emits Transact indicating the transaction to mine on the rollup.
7977
function transact(
8078
uint256 rollupChainId,
8179
address to,
8280
bytes calldata data,
8381
uint256 value,
8482
uint256 gas,
85-
uint256 maxPrioFee,
86-
uint256 maxBaseFee
83+
uint256 maxFeePerGas
8784
) public {
88-
emit Transact(rollupChainId, msg.sender, to, data, value, gas, maxPrioFee, maxBaseFee);
85+
emit Transact(rollupChainId, msg.sender, to, data, value, gas, maxFeePerGas);
8986
}
9087

9188
/// @dev See `transact` above for docs.
92-
function transact(
93-
address to,
94-
bytes calldata data,
95-
uint256 value,
96-
uint256 gas,
97-
uint256 maxPrioFee,
98-
uint256 maxBaseFee
99-
) external {
100-
transact(defaultRollupChainId, to, data, value, gas, maxPrioFee, maxBaseFee);
89+
function transact(address to, bytes calldata data, uint256 value, uint256 gas, uint256 maxFeePerGas) external {
90+
transact(defaultRollupChainId, to, data, value, gas, maxFeePerGas);
10191
}
10292

10393
/// @notice Allows the admin to withdraw ETH or ERC20 tokens from the contract.

0 commit comments

Comments
 (0)