Submitted by rvierdiiev, also found by KIntern_NA
In order to send LZ message MagnetarBaseModule._withdrawToChain function is called. This function allows to include composed message only if data.unwrap is set to true. In this case _lzCustomWithdraw function will be used, which will include composed message.
In case if !data.unwrap, then _lzWithdraw function is called, which calls _prepareLzSend function, which includes empty composed message. If you want to include composed message, then you should set data.unwrap as true.
Now, lets look into MagnetarMintXChainModule.mintBBLendXChainSGL function, which passes false. Then look into MagnetarAssetXChainModule.depositYBLendSGLLockXchainTOLP function, which passes false.
As both of them pass data.unwrap as false, it means that compose message will not be crafted and this cross chain functionality will not work.
It will be not possible to min usdo on one chain and lend it to singularity on another chain.
VsCode
Pass data.unwrap` as true.
Error
cryptotechmaker (Tapioca) confirmed and commented:
