Integrate changes from: https://github.com/matter-labs/era-contracts/pull/1983 Make the server automatically finalize chain migrations after it's safe