-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates new addresses Signed-off-by: stadolf <[email protected]>
- Loading branch information
1 parent
77f960f
commit ab49b7e
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
script/dev/UpgradeTokenizer.s.sol → script/prod/RolloutTokenizerV12.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.18; | ||
|
||
import "forge-std/Script.sol"; | ||
import {Tokenizer} from '../../src/Tokenizer.sol'; | ||
import { Tokenizer } from "../../src/Tokenizer.sol"; | ||
import { IPToken } from "../../src/IPToken.sol"; | ||
import { console } from "forge-std/console.sol"; | ||
|
||
contract UpgradeTokenizer11_12 is Script { | ||
|
||
contract RolloutTokenizerV12 is Script { | ||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
IPToken newIpTokenImplementation = new IPToken(); | ||
Tokenizer newTokenizerImplementation = new Tokenizer(); | ||
|
||
bytes memory upgradeCallData = abi.encodeWithSelector(Tokenizer.setIPTokenImplementation.selector, address(newIpTokenImplementation)); | ||
|
||
console.log("NEWTOKENIMPLEMENTATION=%s", address(newIpTokenImplementation)); | ||
console.log("NEWTOKENIZER=%s", address(newTokenizerImplementation)); | ||
console.logBytes(upgradeCallData); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} | ||
} |