From b297fd560743ab8153909de78a249c4b0a77a4e7 Mon Sep 17 00:00:00 2001 From: gretzke Date: Fri, 19 Apr 2024 15:59:38 +0200 Subject: [PATCH] compilation fix --- contracts/v2/lib/PolygonRollupBaseEtrog.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/v2/lib/PolygonRollupBaseEtrog.sol b/contracts/v2/lib/PolygonRollupBaseEtrog.sol index 03ae1028c..ce522c995 100644 --- a/contracts/v2/lib/PolygonRollupBaseEtrog.sol +++ b/contracts/v2/lib/PolygonRollupBaseEtrog.sol @@ -302,9 +302,7 @@ abstract contract PolygonRollupBaseEtrog is string memory sequencerURL, string memory _networkName ) external virtual onlyRollupManager initializer { - bytes memory gasTokenMetadata; - - _verifyOrigin(_gasTokenAddress); + bytes memory gasTokenMetadata = _verifyOrigin(_gasTokenAddress); // Sequence transaction to initilize the bridge @@ -930,7 +928,9 @@ abstract contract PolygonRollupBaseEtrog is return transaction; } - function _verifyOrigin(address _gasTokenAddress) internal virtual { + function _verifyOrigin( + address _gasTokenAddress + ) internal virtual returns (bytes memory gasTokenMetadata) { if (_gasTokenAddress != address(0)) { // Ask for token metadata, the same way is enconded in the bridge // Note that this function will revert if the token is not in this network