Message library not removed from the lzMessageLibs
array
The removeLzMessageLib
function performs the removal of a _messageLib
from the messageLibLookup
mapping. However, the function does not remove the _messageLib
from the lzMessageLibs
array. This can lead to inconsistencies in the state of the contract, as the lzMessageLibs
array is used to iterate over all message libraries across the contract.