From fe81656f11b334bb95c31cc3e4b485ad42bc0d3f Mon Sep 17 00:00:00 2001 From: guoshijiang Date: Tue, 18 Jul 2023 17:51:06 +0800 Subject: [PATCH] fix err log for review --- .../contracts/contracts/da/BVM_EigenDataLayrChain.sol | 10 +++++----- .../contracts/contracts/da/BVM_EigenDataLayrFee.sol | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/contracts/contracts/da/BVM_EigenDataLayrChain.sol b/packages/contracts/contracts/da/BVM_EigenDataLayrChain.sol index 9d22c9f84..83a7515c9 100644 --- a/packages/contracts/contracts/da/BVM_EigenDataLayrChain.sol +++ b/packages/contracts/contracts/da/BVM_EigenDataLayrChain.sol @@ -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; diff --git a/packages/contracts/contracts/da/BVM_EigenDataLayrFee.sol b/packages/contracts/contracts/da/BVM_EigenDataLayrFee.sol index d4cca95ea..53a62249f 100644 --- a/packages/contracts/contracts/da/BVM_EigenDataLayrFee.sol +++ b/packages/contracts/contracts/da/BVM_EigenDataLayrFee.sol @@ -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;