@@ -123,7 +123,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M
123
123
* @param initialSupply The amount of tokens to mint initially (can be zero), allocated to the msg.sender.
124
124
* @param minter The address to receive the minter and operator role of the token, in addition to ITS. If it is set to `address(0)`,
125
125
* the additional minter isn't set, and can't be added later. This allows creating tokens that are managed only by ITS, reducing trust assumptions.
126
- * Reverts if the minter is interchainTokenService address (invalid) .
126
+ * Reverts if the minter is the ITS address since it's already added as a minter .
127
127
* @return tokenId The tokenId corresponding to the deployed InterchainToken.
128
128
*/
129
129
function deployInterchainToken (
@@ -142,6 +142,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M
142
142
minterBytes = address (this ).toBytes ();
143
143
} else if (minter != address (0 )) {
144
144
if (minter == address (interchainTokenService)) revert InvalidMinter (minter);
145
+
145
146
minterBytes = minter.toBytes ();
146
147
}
147
148
@@ -167,8 +168,8 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M
167
168
* @notice Deploys a remote interchain token on a specified destination chain.
168
169
* @param originalChainName The name of the chain where the token originally exists.
169
170
* @param salt The unique salt for deploying the token.
170
- * @param minter The address to distribute the token on the destination chain . If the address is zero ,
171
- * no additional minter is set on the token. Reverts if the minter is not authorized or interchainTokenService address (invalid) .
171
+ * @param minter The address to receive the minter and operator role of the token, in addition to ITS . If the address is `address(0)` ,
172
+ * no additional minter is set on the token. Reverts if the minter does not have mint permission for the token .
172
173
* @param destinationChain The name of the destination chain.
173
174
* @param gasValue The amount of gas to send for the deployment.
174
175
* @return tokenId The tokenId corresponding to the deployed InterchainToken.
0 commit comments