Skip to content

Commit

Permalink
refactor(protocol): remove unused tier fee in TaikoData (#17741)
Browse files Browse the repository at this point in the history
Co-authored-by: YoGhurt111 <[email protected]>
  • Loading branch information
YoGhurt111 and YoGhurt111 authored Jul 7, 2024
1 parent fd52af1 commit 50abed1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions packages/protocol/contracts/L1/TaikoData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ library TaikoData {
bool checkEOAForCalldataDA;
}

/// @dev Struct representing prover fees per given tier
struct TierFee {
uint16 tier;
uint128 fee;
}

/// @dev A proof and the tier of proof it belongs to
struct TierProof {
uint16 tier;
Expand Down
9 changes: 0 additions & 9 deletions packages/protocol/test/L1/TaikoL1TestBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,6 @@ abstract contract TaikoL1TestBase is TaikoTest {
internal
returns (TaikoData.BlockMetadata memory meta, TaikoData.EthDeposit[] memory ethDeposits)
{
TaikoData.TierFee[] memory tierFees = new TaikoData.TierFee[](3);
// Register the tier fees
// Based on OPL2ConfigTier we need 3:
// - LibTiers.TIER_SGX;
// - LibTiers.TIER_OPTIMISTIC;
// - LibTiers.TIER_GUARDIAN;
tierFees[0] = TaikoData.TierFee(LibTiers.TIER_OPTIMISTIC, 1 ether);
tierFees[1] = TaikoData.TierFee(LibTiers.TIER_SGX, 1 ether);
tierFees[2] = TaikoData.TierFee(LibTiers.TIER_GUARDIAN, 0 ether);
// For the test not to fail, set the message.value to the highest, the
// rest will be returned
// anyways
Expand Down
4 changes: 0 additions & 4 deletions packages/protocol/test/L1/TaikoL1TestGroupBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ abstract contract TaikoL1TestGroupBase is TaikoL1TestBase {
internal
returns (TaikoData.BlockMetadata memory meta)
{
TaikoData.TierFee[] memory tierFees = new TaikoData.TierFee[](2);
tierFees[0] = TaikoData.TierFee(LibTiers.TIER_OPTIMISTIC, 1 ether);
tierFees[1] = TaikoData.TierFee(LibTiers.TIER_SGX, 2 ether);

TaikoData.HookCall[] memory hookcalls = new TaikoData.HookCall[](0);
bytes memory txList = new bytes(10);
bytes memory eoaSig;
Expand Down

0 comments on commit 50abed1

Please sign in to comment.