Skip to content

Commit

Permalink
feat(protocol): get rid of new compiler warnings (#15613)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jan 31, 2024
1 parent 760d3dc commit ccee985
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/protocol/contracts/L2/TaikoL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ contract TaikoL2 is CrossChainOwned, ICrossChainSync {
using LibMath for uint256;
using SafeERC20 for IERC20;

// Golden touch address
address public constant GOLDEN_TOUCH_ADDRESS = 0x0000777735367b36bC9B61C50022d9D0700dB4Ec;

struct Config {
uint32 gasTargetPerL1Block;
uint8 basefeeAdjustmentQuotient;
}

// Golden touch address
address public constant GOLDEN_TOUCH_ADDRESS = 0x0000777735367b36bC9B61C50022d9D0700dB4Ec;

// Mapping from L2 block numbers to their block hashes.
// All L2 block hashes will be saved in this mapping.
mapping(uint256 blockId => bytes32 blockHash) public l2Hashes;
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/contracts/common/OwnerUUPSUpgradable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ abstract contract OwnerUUPSUpgradable is UUPSUpgradeable, OwnableUpgradeable {
}

function pause() public virtual whenNotPaused {
_authorizePause(msg.sender);
_paused = _TRUE;
emit Paused(msg.sender);
_authorizePause(msg.sender);
}

function unpause() public virtual whenPaused {
_authorizePause(msg.sender);
_paused = _FALSE;
emit Unpaused(msg.sender);
_authorizePause(msg.sender);
}

function paused() public view returns (bool) {
Expand Down

0 comments on commit ccee985

Please sign in to comment.