Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make semgrep happy
Browse files Browse the repository at this point in the history
blockchaindevsh committed Jan 22, 2025
1 parent d49b196 commit fde5cfc
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IStorageSetter {
function setBytes32(bytes32, bytes32) external;

function __constructor__() external;
}
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ import {StorageSetter} from "src/universal/StorageSetter.sol";

// Interfaces
import {IProxyAdmin} from "interfaces/universal/IProxyAdmin.sol";
import {IStorageSetter} from "interfaces/universal/IStorageSetter.sol";
import {IProxy} from "interfaces/universal/IProxy.sol";
import {ISoulGasToken} from "interfaces/L2/ISoulGasToken.sol";

@@ -28,7 +29,10 @@ contract UpgradeSoulGasToken is Script {
if (_storageSetter == address(0)) {
_storageSetter = DeployUtils.create1({
_name: "StorageSetter",
_args: ""
_args: DeployUtils.encodeConstructor(
IStorageSetter.__constructor__,
()
)
});
}

@@ -53,12 +57,7 @@ contract UpgradeSoulGasToken is Script {
pure
returns (bytes memory)
{
return
abi.encodeWithSelector(
bytes4(keccak256("setBytes32(bytes32,bytes32)")),
0,
0
);
return abi.encodeCall(IStorageSetter.setBytes32, (0, 0));
}

function encodeSoulGasTokenInitializer()

0 comments on commit fde5cfc

Please sign in to comment.