diff --git a/contracts/InterchainTokenFactory.sol b/contracts/InterchainTokenFactory.sol index a52cfbaa..00c5a190 100644 --- a/contracts/InterchainTokenFactory.sol +++ b/contracts/InterchainTokenFactory.sol @@ -117,6 +117,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M /** * @notice Deploys a new interchain token with specified parameters. + * This will revert with `ZeroSupplyToken()` if trying to deploy a token without a minter or initial supply. * @dev Creates a new token and optionally mints an initial amount to a specified minter. * This function is `payable` because non-payable functions cannot be called in a multicall that calls other `payable` functions. * @param salt The unique salt for deploying the token. @@ -150,7 +151,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M minterBytes = minter.toBytes(); } else { - revert EmptyInterchainToken(); + revert ZeroSupplyToken(); } tokenId = _deployInterchainToken(deploySalt, currentChain, name, symbol, decimals, minterBytes, gasValue); diff --git a/contracts/interfaces/IInterchainTokenFactory.sol b/contracts/interfaces/IInterchainTokenFactory.sol index 0db2aa76..714a73be 100644 --- a/contracts/interfaces/IInterchainTokenFactory.sol +++ b/contracts/interfaces/IInterchainTokenFactory.sol @@ -19,7 +19,7 @@ interface IInterchainTokenFactory is IUpgradable, IMulticall { error NotSupported(); error RemoteDeploymentNotApproved(); error InvalidTokenId(bytes32 tokenId, bytes32 expectedTokenId); - error EmptyInterchainToken(); + error ZeroSupplyToken(); /// @notice Emitted when a minter approves a deployer for a remote interchain token deployment that uses a custom destinationMinter address. event DeployRemoteInterchainTokenApproval( @@ -67,7 +67,8 @@ interface IInterchainTokenFactory is IUpgradable, IMulticall { function interchainTokenId(address deployer, bytes32 salt) external view returns (bytes32 tokenId); /** - * @notice Deploys a new interchain token with specified parameters. + * @notice Deploys a new interchain token with specified parameters. + * This will revert with `ZeroSupplyToken()` if trying to deploy a token without a minter or initial supply. * @param salt The unique salt for deploying the token. * @param name The name of the token. * @param symbol The symbol of the token.