@@ -10,7 +10,7 @@ import {XanV1} from "../XanV1.sol";
10
10
contract XanV2 is IXanV2 , XanV1 {
11
11
/// @notice The [ERC-7201](https://eips.ethereum.org/EIPS/eip-7201) storage of the contract.
12
12
/// @custom:storage-location erc7201:anoma.storage.Xan.v2
13
- /// @param proposedUpgrades The upgrade proposed from a current implementation .
13
+ /// @param forwarder The forwarder being allowed to mint more tokens .
14
14
struct XanV2Storage {
15
15
address forwarder;
16
16
}
@@ -28,6 +28,9 @@ contract XanV2 is IXanV2, XanV1 {
28
28
_;
29
29
}
30
30
31
+ /// @notice Initializes the proxy.
32
+ /// @param initialMintRecipient The initial recipient of the minted tokens.
33
+ /// @param xanV2Forwarder The XanV2 forwarder contract.
31
34
/// @custom:oz-upgrades-validate-as-initializer
32
35
// solhint-disable-next-line comprehensive-interface
33
36
function initialize (address initialMintRecipient , address xanV2Forwarder ) external reinitializer (2 ) {
@@ -39,6 +42,7 @@ contract XanV2 is IXanV2, XanV1 {
39
42
/// @custom:oz-upgrades-validate-as-initializer
40
43
// solhint-disable-next-line comprehensive-interface
41
44
function initializeV2 (address xanV2Forwarder ) external reinitializer (2 ) {
45
+ // Initialize the XanV2 contract
42
46
__XanV2_init ({xanV2Forwarder: xanV2Forwarder});
43
47
}
44
48
@@ -52,13 +56,16 @@ contract XanV2 is IXanV2, XanV1 {
52
56
addr = _getXanV2Storage ().forwarder;
53
57
}
54
58
59
+ /// @notice Initializes the XanV2 contract and newly inherited contracts.
60
+ /// @param xanV2Forwarder The XanV2 forwarder contract.
55
61
/// @custom:oz-upgrades-unsafe-allow missing-initializer-call
56
62
// solhint-disable-next-line func-name-mixedcase
57
63
function __XanV2_init (address xanV2Forwarder ) internal onlyInitializing {
58
64
__XanV2_init_unchained ({xanV2Forwarder: xanV2Forwarder});
59
65
}
60
66
61
- /// @custom:oz-upgrades-unsafe-allow missing-initializer-call
67
+ /// @notice Initializes the XanV2 contract.
68
+ /// @param xanV2Forwarder The XanV2 forwarder contract.
62
69
// solhint-disable-next-line func-name-mixedcase
63
70
function __XanV2_init_unchained (address xanV2Forwarder ) internal onlyInitializing {
64
71
_getXanV2Storage ().forwarder = xanV2Forwarder;
0 commit comments