Skip to content

Commit 9474abb

Browse files
committed
Change to examplealigned token
1 parent dc2eedb commit 9474abb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

claim_contracts/script/UpgradeToken.s.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pragma solidity ^0.8.19;
33

44
// import "../src/TestToken.sol";
5-
import "../src/AlignedTokenV2.sol";
5+
import "../src/ExampleAlignedTokenV2.sol";
66
import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
77
import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
88
import {ERC1967Utils} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol";
@@ -13,7 +13,7 @@ import {Utils} from "./Utils.sol";
1313
/// @notice This script upgrades the ClaimableAirdrop contract to ClaimableAirdropV2.
1414
/// @dev The `ProxyAdmin` owner must be the runner of this script since it is the
1515
/// one that will call the upgradeAndCall function of the `ProxyAdmin`.
16-
contract UpgradeToClaimableAirdropV2 is Script {
16+
contract UpgradeToAlignedTokenV2 is Script {
1717
function run(string memory config) public {
1818
string memory root = vm.projectRoot();
1919
string memory path = string.concat(
@@ -30,14 +30,14 @@ contract UpgradeToClaimableAirdropV2 is Script {
3030
);
3131

3232
vm.startBroadcast();
33-
AlignedTokenV2 _newToken = new AlignedTokenV2();
33+
ExampleAlignedTokenV2 _newToken = new ExampleAlignedTokenV2();
3434

3535
address _adminAddress = getAdminAddress(_currentTokenProxy);
3636

3737
ProxyAdmin(_adminAddress).upgradeAndCall(
3838
ITransparentUpgradeableProxy(_currentTokenProxy),
3939
address(_newToken),
40-
abi.encodeCall(AlignedTokenV2.reinitialize, ())
40+
abi.encodeCall(ExampleAlignedTokenV2.reinitialize, ())
4141
);
4242

4343
vm.stopBroadcast();

claim_contracts/src/AlignedTokenV2.sol renamed to claim_contracts/src/ExampleAlignedTokenV2.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol";
99
import "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol";
1010
import "./AlignedToken.sol";
1111

12-
contract AlignedTokenV2 is AlignedToken {
12+
contract ExampleAlignedTokenV2 is AlignedToken {
1313
/// @custom:oz-upgrades-unsafe-allow constructor
1414
constructor() {
1515
_disableInitializers();
1616
}
1717

1818
function reinitialize() public reinitializer(2) {}
1919

20-
function mint(address _tokenOwner, uint256 amount) public onlyOwner {
21-
_mint(_tokenOwner, amount);
20+
function helloWorld() public pure returns (string memory) {
21+
return "Hello World";
2222
}
2323
}

0 commit comments

Comments
 (0)