Skip to content

Commit

Permalink
fix err log for review
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshijiang committed Jul 18, 2023
1 parent ef76495 commit fe81656
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/contracts/contracts/da/BVM_EigenDataLayrChain.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ contract BVM_EigenDataLayrChain is Initializable, OwnableUpgradeable, Reentrancy
}

function initialize(address _sequencer, address _dataManageAddress, address _reSubmitterAddress, uint256 _block_stale_measure, uint256 _fraudProofPeriod, uint256 _l2SubmittedBlockNumber) public initializer {
require(_sequencer != address(0), "initialize: _sequencer address is the zero address");
require(_dataManageAddress != address(0), "initialize: _dataManageAddress address is the zero address");
require(_reSubmitterAddress != address(0), "initialize: _reSubmitterAddress address is the zero address");
require(_fraudProofPeriod >= 3600, "initialize: _fraudProofPeriod need more than one hour");
require(_fraudProofPeriod <= 25200, "initialize: _fraudProofPeriod need less than seven hour");
require(_sequencer != address(0), "initialize: can't set zero address to _sequencer address");
require(_dataManageAddress != address(0), "initialize: can't set zero address to _dataManageAddress");
require(_reSubmitterAddress != address(0), "initialize: can't set zero address to _reSubmitterAddress");
require(_fraudProofPeriod >= 3600, "initialize: _fraudProofPeriod must be no less than one hour");
require(_fraudProofPeriod <= 25200, "initialize: _fraudProofPeriod must be no more than seven hour");
__Ownable_init();
sequencer = _sequencer;
dataManageAddress = _dataManageAddress;
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/contracts/da/BVM_EigenDataLayrFee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract BVM_EigenDataLayrFee is Initializable, OwnableUpgradeable, ReentrancyGu
}

function initialize(address _address) public initializer {
require(_address != address(0), "initialize: address is the zero address");
require(_address != address(0), "initialize: can't set zero address to gasFeeAddress");
__Ownable_init();
userRollupFee = 0;
gasFeeAddress = _address;
Expand Down

0 comments on commit fe81656

Please sign in to comment.