diff --git a/contracts/TokenHandler.sol b/contracts/TokenHandler.sol index 0c8aaf76..08bbb002 100644 --- a/contracts/TokenHandler.sol +++ b/contracts/TokenHandler.sol @@ -177,6 +177,15 @@ contract TokenHandler is ITokenHandler, ITokenManagerType, ReentrancyGuard, Crea } } + /** + * @notice This function pays gas to the gas service and calls the gateway to transmit a CallContract. + * @param destinationChain The destination chain. + * @param destinationAddress The destination address. + * @param payload The payload to transmit. + * @param metadataVersion The metadata version is used to determine how to pay for gas. + * @param gasValue how much gas to pay. + */ + // slither-disable-next-line locked-ether function callContract( string calldata destinationChain, string calldata destinationAddress, @@ -209,6 +218,17 @@ contract TokenHandler is ITokenHandler, ITokenManagerType, ReentrancyGuard, Crea IAxelarGateway(gateway).callContract(destinationChain, destinationAddress, payload); } + /** + * @notice This function pays gas to the gas service and calls the gateway to transmit a CallContractWithToken. + * @param destinationChain The destination chain. + * @param destinationAddress The destination address. + * @param payload The payload to transmit. + * @param metadataVersion The metadata version is used to determine how to pay for gas. + * @param symbol The gateway symbol. + * @param amount The amount of token to send. + * @param gasValue how much gas to pay. + */ + // slither-disable-next-line locked-ether function callContractWithToken( string calldata destinationChain, string calldata destinationAddress,