Skip to content

Commit

Permalink
Use abi.encodeWithSelector instead of bytes.concat
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed May 11, 2023
1 parent a02419a commit 67127e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/RollupCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ abstract contract RollupCore is IRollupCore, PausableUpgradeable {

constructor() {
(bool ok, bytes memory data) = address(100).staticcall(
bytes.concat(ArbSys.arbOSVersion.selector)
abi.encodeWithSelector(ArbSys.arbOSVersion.selector)
);
_hostChainIsArbitrum = ok && data.length == 32;
}
Expand Down

0 comments on commit 67127e2

Please sign in to comment.