From 87bbb2b0bef2bfe5668ac0cf81c16263b4f5ccef Mon Sep 17 00:00:00 2001 From: dantaik <99078276+dantaik@users.noreply.github.com> Date: Fri, 2 Dec 2022 11:41:12 +0800 Subject: [PATCH] fix --- packages/protocol/contracts/L2/V1TaikoL2.sol | 4 ++-- packages/protocol/contracts/libs/LibConstants.sol | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/protocol/contracts/L2/V1TaikoL2.sol b/packages/protocol/contracts/L2/V1TaikoL2.sol index ed70f39e01d..a313c70bdfc 100644 --- a/packages/protocol/contracts/L2/V1TaikoL2.sol +++ b/packages/protocol/contracts/L2/V1TaikoL2.sol @@ -209,9 +209,9 @@ contract V1TaikoL2 is AddressResolver, ReentrancyGuard, IHeaderSync { function _hashPublicInputs( uint256 chainId, uint256 number, - uint256 feeBase, + uint256 baseFee, bytes32[255] memory ancestors ) private pure returns (bytes32) { - return keccak256(abi.encodePacked(chainId, number, feeBase, ancestors)); + return keccak256(abi.encodePacked(chainId, number, baseFee, ancestors)); } } diff --git a/packages/protocol/contracts/libs/LibConstants.sol b/packages/protocol/contracts/libs/LibConstants.sol index b2cbc6845c5..a9809255ec8 100644 --- a/packages/protocol/contracts/libs/LibConstants.sol +++ b/packages/protocol/contracts/libs/LibConstants.sol @@ -28,7 +28,6 @@ library LibConstants { uint256 public constant K_ANCHOR_TX_GAS_LIMIT = 250000; uint256 public constant K_FEE_PREMIUM_LAMDA = 590; uint256 public constant K_REWARD_BURN_BP = 100; // 100 basis points or 1% - uint256 public constant K_ANCHOR_TX_GAS_LIMIT = 250000; uint256 public constant K_PROPOSER_DEPOSIT_PCTG = 25; // 25% // Moving average factors