Skip to content

Commit

Permalink
++ registry in PrecompilesOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Oct 10, 2024
1 parent 6648ad4 commit f0a4fc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import "../../contracts/common/interfaces/ICeloVersionedContract.sol";
import "../../contracts-0.8/common/IsL2Check.sol";

import "./UsingPrecompiles.sol";
import "./UsingRegistry.sol";

/**
* @title PrecompilesOverride Contract
* @notice This contract allows for a smoother transition from L1 to L2
* by abstracting away the usingPrecompile contract, and taking care of the L1 to L2 swtiching logic.
**/
contract PrecompilesOverride is UsingPrecompiles {
contract PrecompilesOverride is UsingPrecompiles, UsingRegistry {
/**
* @notice Returns the epoch number at a block.
* @param blockNumber Block number where epoch number is calculated.
Expand Down
3 changes: 2 additions & 1 deletion packages/protocol/contracts/common/PrecompilesOverride.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma solidity ^0.5.13;

import "./interfaces/ICeloVersionedContract.sol";
import "../../contracts-0.8/common/IsL2Check.sol";
import "./UsingRegistry.sol";

import "./UsingPrecompiles.sol";

Expand All @@ -10,7 +11,7 @@ import "./UsingPrecompiles.sol";
* @notice This contract allows for a smoother transition from L1 to L2
* by abstracting away the usingPrecompile contract, and taking care of the L1 to L2 swtiching logic.
**/
contract PrecompilesOverride is UsingPrecompiles {
contract PrecompilesOverride is UsingPrecompiles, UsingRegistry {
/**
* @notice Returns the epoch number at a block.
* @param blockNumber Block number where epoch number is calculated.
Expand Down

0 comments on commit f0a4fc3

Please sign in to comment.