Skip to content

Commit

Permalink
better reinit check
Browse files Browse the repository at this point in the history
  • Loading branch information
mejango committed Mar 22, 2024
1 parent f10b6b5 commit ab249c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JBERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ contract JBERC20 is ERC20Votes, ERC20Permit, Ownable, IJBToken {
/// @param owner The owner of the token.
function initialize(string memory name_, string memory symbol_, address owner) public override {
// Stop re-initialization.
if (this.owner() != address(0) || owner == address(0)) revert();
if (bytes(_name).length != 0 || bytes(name_).length == 0) revert();

_name = name_;
_symbol = symbol_;
Expand Down

0 comments on commit ab249c2

Please sign in to comment.