Skip to content

Commit 88b40e2

Browse files
committed
updated comments
1 parent f3debcf commit 88b40e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

contracts/InterchainTokenFactory.sol

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M
123123
* @param initialSupply The amount of tokens to mint initially (can be zero), allocated to the msg.sender.
124124
* @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)`,
125125
* 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.
127127
* @return tokenId The tokenId corresponding to the deployed InterchainToken.
128128
*/
129129
function deployInterchainToken(
@@ -142,6 +142,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M
142142
minterBytes = address(this).toBytes();
143143
} else if (minter != address(0)) {
144144
if (minter == address(interchainTokenService)) revert InvalidMinter(minter);
145+
145146
minterBytes = minter.toBytes();
146147
}
147148

@@ -167,8 +168,8 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M
167168
* @notice Deploys a remote interchain token on a specified destination chain.
168169
* @param originalChainName The name of the chain where the token originally exists.
169170
* @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.
172173
* @param destinationChain The name of the destination chain.
173174
* @param gasValue The amount of gas to send for the deployment.
174175
* @return tokenId The tokenId corresponding to the deployed InterchainToken.

0 commit comments

Comments
 (0)