Skip to content

Commit

Permalink
feat: address check in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Sep 19, 2024
1 parent 45ac4b9 commit 6d71a7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/messaging/MessageBusManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ contract MessageBusManager is IManager, Ownable {
error MessageBusManager__ZeroAddress();

constructor(address messageBus_, address owner_) {
if (messageBus_ == address(0) || owner_ == address(0)) {
revert MessageBusManager__ZeroAddress();
}
MESSAGE_BUS = messageBus_;
transferOwnership(owner_);
}
Expand Down

0 comments on commit 6d71a7e

Please sign in to comment.