Skip to content

Commit

Permalink
compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Apr 19, 2024
1 parent 171129d commit b297fd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/v2/lib/PolygonRollupBaseEtrog.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b297fd5

Please sign in to comment.