From 6ac483461d0a71de6d847e9ca99cf0125b736a1a Mon Sep 17 00:00:00 2001 From: Goran Vladika Date: Tue, 17 Oct 2023 15:25:33 +0200 Subject: [PATCH] remove unnecessary block scope --- src/rollup/RollupCreator.sol | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/src/rollup/RollupCreator.sol b/src/rollup/RollupCreator.sol index 32c058262..ac9621b38 100644 --- a/src/rollup/RollupCreator.sol +++ b/src/rollup/RollupCreator.sol @@ -109,27 +109,22 @@ contract RollupCreator is Ownable { payable returns (address) { - { - // Make sure the immutable maxDataSize is as expected - (, ISequencerInbox ethSequencerInbox, IInboxBase ethInbox, , ) = bridgeCreator - .ethBasedTemplates(); - require( - deployParams.maxDataSize == ethSequencerInbox.maxDataSize(), - "SI_MAX_DATA_SIZE_MISMATCH" - ); - require(deployParams.maxDataSize == ethInbox.maxDataSize(), "I_MAX_DATA_SIZE_MISMATCH"); + // Make sure the immutable maxDataSize is as expected + (, ISequencerInbox ethSequencerInbox, IInboxBase ethInbox, , ) = bridgeCreator + .ethBasedTemplates(); + require( + deployParams.maxDataSize == ethSequencerInbox.maxDataSize(), + "SI_MAX_DATA_SIZE_MISMATCH" + ); + require(deployParams.maxDataSize == ethInbox.maxDataSize(), "I_MAX_DATA_SIZE_MISMATCH"); - (, ISequencerInbox erc20SequencerInbox, IInboxBase erc20Inbox, , ) = bridgeCreator - .erc20BasedTemplates(); - require( - deployParams.maxDataSize == erc20SequencerInbox.maxDataSize(), - "SI_MAX_DATA_SIZE_MISMATCH" - ); - require( - deployParams.maxDataSize == erc20Inbox.maxDataSize(), - "I_MAX_DATA_SIZE_MISMATCH" - ); - } + (, ISequencerInbox erc20SequencerInbox, IInboxBase erc20Inbox, , ) = bridgeCreator + .erc20BasedTemplates(); + require( + deployParams.maxDataSize == erc20SequencerInbox.maxDataSize(), + "SI_MAX_DATA_SIZE_MISMATCH" + ); + require(deployParams.maxDataSize == erc20Inbox.maxDataSize(), "I_MAX_DATA_SIZE_MISMATCH"); // create proxy admin which will manage bridge contracts ProxyAdmin proxyAdmin = new ProxyAdmin();