Skip to content

Commit

Permalink
refactor: simplify if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
hexshire authored May 2, 2024
1 parent a8410c1 commit 9fa0ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solidity/contracts/XERC20Factory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ contract XERC20Factory is IXERC20Factory {
address[] memory _bridges
) internal returns (address _xerc20) {
uint256 _bridgesLength = _bridges.length;
if (_minterLimits.length != _bridgesLength || _burnerLimits.length != _bridgesLength) {
if (_minterLimits.length & _burnerLimits.length != _bridgesLength) {
revert IXERC20Factory_InvalidLength();
}
bytes32 _salt = keccak256(abi.encodePacked(_name, _symbol, msg.sender));
Expand Down

0 comments on commit 9fa0ba2

Please sign in to comment.