Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: filter undefined factory addresses (#5340)
### Description When deploying Hyperlane contracts using `warp deploy`, the core addresses obtained using older version of `core deploy` may not include addresses of newer factories (`staticMessageIdWeightedMultisigIsmFactory` and `staticMessageIdWeightedMultisigIsmFactory`). These `undefined` addresses would cause warp deploy to fail, even though they aren't absolutely necessary for warping. This fix handles undefined factory addresses that are filtered out during `warp deploy`. This way, warp deploy can proceed the weighted factories, and users won't have to pay gas fees for core deployment once again to. Attached LogX chain core deployment lacking weighted factory addresses & the resulting error message from `warp deploy` ![2025-01-30 16 30 55](https://github.com/user-attachments/assets/cbe86080-a944-487f-a8d7-beb5f746b007) ![2025-01-30 16 30 39](https://github.com/user-attachments/assets/b118fe99-4894-43bf-a17b-6561d3052d31) ### Drive-by changes - Added `undefined` address filtering in the `filterAddressesMap` function ### Related issues None ### Backward compatibility Yes ### Testing Manual
- Loading branch information