From dde32a97195bf6adf9a5753a406c99487f737fbe Mon Sep 17 00:00:00 2001 From: ahramy Date: Sat, 9 Nov 2024 12:12:46 -0800 Subject: [PATCH] updated --- contracts/InterchainTokenFactory.sol | 4 ++++ contracts/InterchainTokenService.sol | 1 + 2 files changed, 5 insertions(+) diff --git a/contracts/InterchainTokenFactory.sol b/contracts/InterchainTokenFactory.sol index ef936708..d926f645 100644 --- a/contracts/InterchainTokenFactory.sol +++ b/contracts/InterchainTokenFactory.sol @@ -104,6 +104,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M /** * @notice Deploys a new interchain token with specified parameters. * @dev Creates a new token and optionally mints an initial amount to a specified minter. + * The function is marked as `payable` to enable multi-call execution. * @param salt The unique salt for deploying the token. * @param name The name of the token. * @param symbol The symbol of the token. @@ -154,6 +155,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M /** * @notice Deploys a remote interchain token on a specified destination chain. + * @dev The function is marked as `payable` to enable multi-call execution. * @param salt The unique salt for deploying the token. * @param minter The address to receive the minter and operator role of the token, in addition to ITS. If the address is `address(0)`, * no additional minter is set on the token. Reverts if the minter does not have mint permission for the token. @@ -250,6 +252,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M /** * @notice Registers a canonical token as an interchain token and deploys its token manager. + * @dev The function is marked as `payable` to enable multi-call execution. * @param tokenAddress The address of the canonical token. * @return tokenId The tokenId corresponding to the registered canonical token. */ @@ -262,6 +265,7 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M /** * @notice Deploys a canonical interchain token on a remote chain. + * @dev The function is marked as `payable` to enable multi-call execution. * @param originalTokenAddress The address of the original token on the original chain. * @param destinationChain The name of the chain where the token will be deployed. * @param gasValue The gas amount to be sent for deployment. diff --git a/contracts/InterchainTokenService.sol b/contracts/InterchainTokenService.sol index efd337cf..604316ec 100644 --- a/contracts/InterchainTokenService.sol +++ b/contracts/InterchainTokenService.sol @@ -477,6 +477,7 @@ contract InterchainTokenService is /** * @notice Initiates an interchain transfer of a specified token to a destination chain. * @dev The function retrieves the TokenManager associated with the tokenId. + * The function is marked as `payable` to enable multi-call execution. * @param tokenId The unique identifier of the token to be transferred. * @param destinationChain The destination chain to send the tokens to. * @param destinationAddress The address on the destination chain to send the tokens to.