diff --git a/contracts/SNTPlaceHolder.sol b/contracts/SNTOptimismController.sol similarity index 97% rename from contracts/SNTPlaceHolder.sol rename to contracts/SNTOptimismController.sol index 37bd5cc..c25c45b 100644 --- a/contracts/SNTPlaceHolder.sol +++ b/contracts/SNTOptimismController.sol @@ -29,7 +29,7 @@ import { Ownable2Step } from "@openzeppelin/contracts/access/Ownable2Step.sol"; /// The contract allows for SNT transfers and transferFrom and implements the /// logic for transferring control of the token to the network when the offering /// asks it to do so. -contract SNTPlaceHolder is TokenController, Ownable2Step { +contract SNTOptimismController is TokenController, Ownable2Step { MiniMeBase public snt; constructor(address payable _snt) { diff --git a/script/DeployBridge.s.sol b/script/DeployBridge.s.sol index c69d1fa..f82cc3a 100644 --- a/script/DeployBridge.s.sol +++ b/script/DeployBridge.s.sol @@ -5,10 +5,10 @@ import { MiniMeBase } from "@vacp2p/minime/contracts/MiniMeBase.sol"; import { BaseScript } from "./Base.s.sol"; import { DeploymentConfig } from "./DeploymentConfig.s.sol"; import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol"; -import { SNTPlaceHolder } from "../contracts/SNTPlaceHolder.sol"; +import { SNTOptimismController } from "../contracts/SNTOptimismController.sol"; contract DeployBridge is BaseScript { - function run() public returns (DeploymentConfig, OptimismMintableMiniMeToken, SNTPlaceHolder) { + function run() public returns (DeploymentConfig, OptimismMintableMiniMeToken, SNTOptimismController) { DeploymentConfig deploymentConfig = new DeploymentConfig(broadcaster); ( address deployer, @@ -33,7 +33,7 @@ contract DeployBridge is BaseScript { tokenSymbol, transferEnabled ); - SNTPlaceHolder tokenController = new SNTPlaceHolder(payable(address(bridgeToken))); + SNTOptimismController tokenController = new SNTOptimismController(payable(address(bridgeToken))); bridgeToken.changeController(payable(address(tokenController))); vm.stopBroadcast(); return (deploymentConfig, bridgeToken, tokenController); diff --git a/test/OptimismMintableMiniMeToken.t.sol b/test/OptimismMintableMiniMeToken.t.sol index 3a4906b..c593e6e 100644 --- a/test/OptimismMintableMiniMeToken.t.sol +++ b/test/OptimismMintableMiniMeToken.t.sol @@ -6,11 +6,11 @@ import { DeployBridge } from "../script/DeployBridge.s.sol"; import { DeploymentConfig } from "../script/DeploymentConfig.s.sol"; import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol"; -import { SNTPlaceHolder } from "../contracts/SNTPlaceHolder.sol"; +import { SNTOptimismController } from "../contracts/SNTOptimismController.sol"; contract OptmismMintableMiniMeTokenTest is Test { DeploymentConfig internal deploymentConfig; - SNTPlaceHolder internal tokenController; + SNTOptimismController internal tokenController; OptimismMintableMiniMeToken internal bridgeToken; address internal deployer;